Skip to content

Commit

Permalink
Merge pull request #836 from LostDragonist/Develop
Browse files Browse the repository at this point in the history
Automatically fill in the name of new executables
  • Loading branch information
LostDragonist committed Sep 17, 2019
2 parents 11bf449 + 1fec9da commit 795d47e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/editexecutablesdialog.cpp
Expand Up @@ -619,8 +619,9 @@ void EditExecutablesDialog::on_browseBinary_clicked()
ui->binary->setText(QDir::toNativeSeparators(binaryName));
}

// setting title if currently empty
if (ui->title->text().isEmpty()) {
// setting title if currently empty or some variation of "New Executable"
if (ui->title->text().isEmpty() ||
ui->title->text().startsWith("New Executable", Qt::CaseInsensitive)) {
const auto prefix = QFileInfo(binaryName).baseName();
const auto newTitle = m_executablesList.makeNonConflictingTitle(prefix);

Expand Down

0 comments on commit 795d47e

Please sign in to comment.