From b11653ebd7fb5b2630dd4fa1894e590bc8c04736 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mikko=20Kein=C3=A4nen?= Date: Sun, 28 Nov 2010 00:29:15 +0200 Subject: [PATCH 1/1] Improvement to BrowseFIlePathDialog usability, browsing continues from the selected file path in file path label. --- src/dialogs/browsefilepathdialog.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/dialogs/browsefilepathdialog.cpp b/src/dialogs/browsefilepathdialog.cpp index be59e33..76554ef 100644 --- a/src/dialogs/browsefilepathdialog.cpp +++ b/src/dialogs/browsefilepathdialog.cpp @@ -39,9 +39,11 @@ void BrowseFilePathDialog::initWidgets() void BrowseFilePathDialog::browseFilePath() { - QString startPath = (efObject && !efObject->getName().isEmpty()) - ? efObject->getName() - : QDir::homePath(); + QString startPath = filePathLabel->text(); + if (startPath.isEmpty()) { + startPath = (efObject && !efObject->getName().isEmpty()) + ? efObject->getName() : QDir::homePath(); + } QString fpath = QFileDialog::getExistingDirectory(this, tr("Select a directory"), startPath, -- 1.7.9.5