diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-04-03 14:04:21 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-04-03 14:04:21 +0000 |
commit | 86f70de8099ba0211001c648d98363bfa6eeaabc (patch) | |
tree | b1675f243870f7adee0464758f9721604c275b89 /rbutil/rbutilqt/configure.cpp | |
parent | 1c635a8c3c49c1c657b5c387d53086da5d6c08d3 (diff) |
Properly remove the configuration dialog.
The configuration dialog isn't needed anymore once the finished() signal is
emitted. In that case schedule it for deletion by the event loop.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29674 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r-- | rbutil/rbutilqt/configure.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index 9b6376e469..0ace229ee5 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp @@ -98,6 +98,9 @@ Config::Config(QWidget *parent,int index) : QDialog(parent) connect(ui.treeDevices, SIGNAL(itemSelectionChanged()), this, SLOT(updateEncState())); connect(ui.testTTS,SIGNAL(clicked()),this,SLOT(testTts())); connect(ui.showDisabled, SIGNAL(toggled(bool)), this, SLOT(showDisabled(bool))); + // delete this dialog after it finished automatically. + connect(this, SIGNAL(finished(int)), this, SLOT(deleteLater())); + setUserSettings(); setDevices(); } |