mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-08 11:11:51 +00:00
GUI: deactivate »add additional parts/append to« if no files present in drop action dialog
This commit is contained in:
parent
96458ae79b
commit
c46591157e
@ -77,7 +77,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<widget class="QLabel" name="lAppendTo">
|
||||
<property name="text">
|
||||
<string>If you want to append or add them as additional parts you have to select which input file to append or add them to:</string>
|
||||
</property>
|
||||
|
@ -26,6 +26,12 @@ AddingAppendingFilesDialog::AddingAppendingFilesDialog(QWidget *parent,
|
||||
ui->cbFileName->addItem(Q("%1 (%2)").arg(info.fileName()).arg(info.path()));
|
||||
}
|
||||
|
||||
if (files.isEmpty()) {
|
||||
ui->lAppendTo->setEnabled(false);
|
||||
ui->rbAppend->setEnabled(false);
|
||||
ui->rbAddAdditionalParts->setEnabled(false);
|
||||
}
|
||||
|
||||
adjustSize();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user