And add three dots to browse button's label to indicate dialog.
tr("Find the application"),
QDir::currentPath());
tr("Find the application"),
QDir::currentPath());
- if (isFileOk(fileName)) {
+ if (!fileName.isEmpty() && isFileOk(fileName)) {
applicationEdit->setText(fileName);
}
}
applicationEdit->setText(fileName);
}
}
<item>
<widget class="QPushButton" name="browseButton">
<property name="text">
<item>
<widget class="QPushButton" name="browseButton">
<property name="text">
- <string>Browse</string>
+ <string>Browse...</string>
</property>
<property name="flat">
<bool>false</bool>
</property>
<property name="flat">
<bool>false</bool>