summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/editexecutablesdialog.cpp3
-rw-r--r--src/editexecutablesdialog.ui3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/editexecutablesdialog.cpp b/src/editexecutablesdialog.cpp
index cb6ec6e8..96f4660a 100644
--- a/src/editexecutablesdialog.cpp
+++ b/src/editexecutablesdialog.cpp
@@ -485,12 +485,15 @@ void EditExecutablesDialog::on_browseBinary_clicked()
return;
}
+ // setting binary
if (binaryName.endsWith(".jar", Qt::CaseInsensitive)) {
+ // special case for jar files, uses the system java installation
setJarBinary(binaryName);
} else {
ui->binary->setText(QDir::toNativeSeparators(binaryName));
}
+ // setting title if currently empty
if (ui->title->text().isEmpty()) {
const auto prefix = QFileInfo(binaryName).baseName();
const auto newTitle = makeNonConflictingTitle(prefix);
diff --git a/src/editexecutablesdialog.ui b/src/editexecutablesdialog.ui
index 6cb8e0b8..7a5fa27f 100644
--- a/src/editexecutablesdialog.ui
+++ b/src/editexecutablesdialog.ui
@@ -359,6 +359,9 @@ Right now the only case I know of where this needs to be overwritten is for the
<property name="text">
<string>(*) Profile Specific</string>
</property>
+ <property name="margin">
+ <number>5</number>
+ </property>
</widget>
</item>
</layout>