summaryrefslogtreecommitdiff
path: root/rbutil
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/installtalkwindow.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/installtalkwindow.cpp b/rbutil/rbutilqt/installtalkwindow.cpp
index f225632f22..40f96e724f 100644
--- a/rbutil/rbutilqt/installtalkwindow.cpp
+++ b/rbutil/rbutilqt/installtalkwindow.cpp
@@ -67,7 +67,13 @@ void InstallTalkWindow::setTalkFolder(QString folder)
67void InstallTalkWindow::change() 67void InstallTalkWindow::change()
68{ 68{
69 Config *cw = new Config(this,4); 69 Config *cw = new Config(this,4);
70 70
71 // make sure the current selected folder doesn't get lost on settings
72 // changes. If the current selection is invalid don't accept it so
73 // it gets reset to the old value after closing the settings dialog.
74 QString folderToTalk = ui.lineTalkFolder->text();
75 if(QFileInfo(folderToTalk).isDir())
76 RbSettings::setValue(RbSettings::LastTalkedFolder, folderToTalk);
71 connect(cw, SIGNAL(settingsUpdated()), this, SLOT(updateSettings())); 77 connect(cw, SIGNAL(settingsUpdated()), this, SLOT(updateSettings()));
72 78
73 cw->show(); 79 cw->show();