Don't lose the library settings when opening the settings dialog and accepting it without navigating to the Library tab.

This commit is contained in:
David Sansome 2010-04-21 11:24:22 +00:00
parent 4eedddd57c
commit 3400f2b947
3 changed files with 7 additions and 0 deletions

View File

@ -85,6 +85,10 @@ void LibraryConfig::Save() {
}
void LibraryConfig::showEvent(QShowEvent *) {
Load();
}
void LibraryConfig::Load() {
QSettings s;
s.beginGroup(LibraryView::kSettingsGroup);

View File

@ -32,6 +32,7 @@ class LibraryConfig : public QWidget {
void SetModel(LibraryDirectoryModel* model);
public slots:
void Load();
void Save();
protected:

View File

@ -246,6 +246,8 @@ void SettingsDialog::showEvent(QShowEvent*) {
ui_.notifications_bg_preset->setItemData(2, QColor(color), Qt::DecorationRole);
UpdatePopupVisible();
ui_.library_config->Load();
loading_settings_ = false;
}