1
0
Fork 0

Fixed conditions in favourite tools

This commit is contained in:
torusrxxx 2017-09-06 12:40:47 +08:00
parent 1f2dd7a816
commit 3879297c7a
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ void FavouriteTools::on_btnAddFavouriteTool_clicked()
memset(buffer, 0, sizeof(buffer));
BridgeSettingGet("Favourite", "LastToolPath", buffer);
BrowseDialog browse(this, tr("Browse tool"), tr("Enter the path of the tool."), tr("Executable Files (*.exe);;All Files (*.*)"), QString(buffer), false);
if(browse.exec() != QDialog::Accepted && browse.path.length())
if(browse.exec() != QDialog::Accepted || browse.path.length() == 0)
return;
filename = browse.path;
BridgeSettingSet("Favourite", "LastToolPath", filename.toUtf8().constData());