diff options
author | Robert Loehning <robert.loehning@theqtcompany.com> | 2015-05-07 16:48:21 +0200 |
---|---|---|
committer | Robert Loehning <robert.loehning@theqtcompany.com> | 2015-05-08 12:08:02 +0300 |
commit | 76a631f3f8ca22fcccac70fc642dbef5fce92361 (patch) | |
tree | fff173dd04362ac50e1086fc2eac282d1205148e | |
parent | 2342d6388af1c6a3418055ef01363a569166098a (diff) | |
download | qt-creator-76a631f3f8ca22fcccac70fc642dbef5fce92361.tar.gz |
Use previous path for browsing suites
Change-Id: Ie643c6c96753471078c408a59e7e01c973fa28a1
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
-rw-r--r-- | plugins/autotest/opensquishsuitesdialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/autotest/opensquishsuitesdialog.cpp b/plugins/autotest/opensquishsuitesdialog.cpp index 978594ee1f..14d1ad2bf3 100644 --- a/plugins/autotest/opensquishsuitesdialog.cpp +++ b/plugins/autotest/opensquishsuitesdialog.cpp @@ -28,6 +28,8 @@ namespace Autotest { namespace Internal { +static QString previousPath; + OpenSquishSuitesDialog::OpenSquishSuitesDialog(QWidget *parent) : QDialog(parent), ui(new Ui::OpenSquishSuitesDialog) @@ -43,6 +45,8 @@ OpenSquishSuitesDialog::OpenSquishSuitesDialog(QWidget *parent) : this, &OpenSquishSuitesDialog::deselectAll); connect(this, &OpenSquishSuitesDialog::accepted, this, &OpenSquishSuitesDialog::setChosenSuites); + + ui->directoryLineEdit->setPath(previousPath); } OpenSquishSuitesDialog::~OpenSquishSuitesDialog() @@ -103,7 +107,8 @@ void OpenSquishSuitesDialog::deselectAll() void OpenSquishSuitesDialog::setChosenSuites() { const int count = ui->suitesListWidget->count(); - const QDir baseDir(ui->directoryLineEdit->path()); + previousPath = ui->directoryLineEdit->path(); + const QDir baseDir(previousPath); for (int row = 0; row < count; ++row) { QListWidgetItem *item = ui->suitesListWidget->item(row); if (item->checkState() == Qt::Checked) |