mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
1
This commit is contained in:
parent
5bef4cef22
commit
5092ebe2ee
|
@ -224,7 +224,7 @@ void loadDictionaries( QWidget * parent,
|
||||||
|
|
||||||
loadDicts.wait();
|
loadDicts.wait();
|
||||||
|
|
||||||
if ( loadDicts.getExceptionText().size() ) {
|
if ( !loadDicts.getExceptionText().empty() ) {
|
||||||
QMessageBox::critical( parent,
|
QMessageBox::critical( parent,
|
||||||
QCoreApplication::translate( "LoadDictionaries", "Error loading dictionaries" ),
|
QCoreApplication::translate( "LoadDictionaries", "Error loading dictionaries" ),
|
||||||
QString::fromUtf8( loadDicts.getExceptionText().c_str() ) );
|
QString::fromUtf8( loadDicts.getExceptionText().c_str() ) );
|
||||||
|
|
|
@ -183,9 +183,9 @@ void EditDictionaries::acceptChangedSources( bool rebuildGroups )
|
||||||
{
|
{
|
||||||
dictionariesChanged = true;
|
dictionariesChanged = true;
|
||||||
|
|
||||||
Config::Groups savedGroups = cfg.groups;
|
Config::Groups savedGroups = groups->getGroups();
|
||||||
Config::Group savedOrder = cfg.dictionaryOrder;
|
Config::Group savedOrder = orderAndProps->getCurrentDictionaryOrder();
|
||||||
Config::Group savedInactive = cfg.inactiveDictionaries;
|
Config::Group savedInactive = orderAndProps->getCurrentInactiveDictionaries();
|
||||||
|
|
||||||
cfg.paths = sources.getPaths();
|
cfg.paths = sources.getPaths();
|
||||||
cfg.soundDirs = sources.getSoundDirs();
|
cfg.soundDirs = sources.getSoundDirs();
|
||||||
|
|
Loading…
Reference in a new issue