diff options
author | Alexandr Akulich <akulichalexander@gmail.com> | 2012-12-07 17:22:49 +0600 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2012-12-08 13:02:09 +0000 |
commit | bb95803da37219b553f23cad88c81f84c30122a4 (patch) | |
tree | f7dbd626d0b536a2315b3c6b3cb4d9656aae2676 /gui | |
parent | 1af9409e5ade504829e8d3260921e5905cbf8f11 (diff) |
gui/tracedialog: Don't show warning when user cancel to browse.
And add three dots to browse button's label to indicate dialog.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/tracedialog.cpp | 2 | ||||
-rw-r--r-- | gui/ui/tracedialog.ui | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/tracedialog.cpp b/gui/tracedialog.cpp index fcfdf466..b8e438d9 100644 --- a/gui/tracedialog.cpp +++ b/gui/tracedialog.cpp @@ -50,7 +50,7 @@ void TraceDialog::browse() tr("Find the application"), QDir::currentPath()); - if (isFileOk(fileName)) { + if (!fileName.isEmpty() && isFileOk(fileName)) { applicationEdit->setText(fileName); } } diff --git a/gui/ui/tracedialog.ui b/gui/ui/tracedialog.ui index a3e5240a..f6eccf44 100644 --- a/gui/ui/tracedialog.ui +++ b/gui/ui/tracedialog.ui @@ -47,7 +47,7 @@ <item> <widget class="QPushButton" name="browseButton"> <property name="text"> - <string>Browse</string> + <string>Browse...</string> </property> <property name="flat"> <bool>false</bool> |