mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-09 03:31:41 +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>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="lAppendTo">
|
||||||
<property name="text">
|
<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>
|
<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>
|
</property>
|
||||||
|
@ -26,6 +26,12 @@ AddingAppendingFilesDialog::AddingAppendingFilesDialog(QWidget *parent,
|
|||||||
ui->cbFileName->addItem(Q("%1 (%2)").arg(info.fileName()).arg(info.path()));
|
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();
|
adjustSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user