From c46591157e4d971916ce8f940516fa0271a473c2 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 19 Sep 2015 08:05:23 +0200 Subject: [PATCH] =?UTF-8?q?GUI:=20deactivate=20=C2=BBadd=20additional=20pa?= =?UTF-8?q?rts/append=20to=C2=AB=20if=20no=20files=20present=20in=20drop?= =?UTF-8?q?=20action=20dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../forms/merge/adding_appending_files_dialog.ui | 2 +- src/mkvtoolnix-gui/merge/adding_appending_files_dialog.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mkvtoolnix-gui/forms/merge/adding_appending_files_dialog.ui b/src/mkvtoolnix-gui/forms/merge/adding_appending_files_dialog.ui index d5cc5f248..59a24fa4c 100644 --- a/src/mkvtoolnix-gui/forms/merge/adding_appending_files_dialog.ui +++ b/src/mkvtoolnix-gui/forms/merge/adding_appending_files_dialog.ui @@ -77,7 +77,7 @@ - + If you want to append or add them as additional parts you have to select which input file to append or add them to: diff --git a/src/mkvtoolnix-gui/merge/adding_appending_files_dialog.cpp b/src/mkvtoolnix-gui/merge/adding_appending_files_dialog.cpp index c879521c1..94af7ae16 100644 --- a/src/mkvtoolnix-gui/merge/adding_appending_files_dialog.cpp +++ b/src/mkvtoolnix-gui/merge/adding_appending_files_dialog.cpp @@ -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(); }