Fixes #1294 - Companion, Delete action without a selection

This commit is contained in:
Damjan Adamic
2014-06-17 09:25:57 +02:00
parent c7133bb5a0
commit 6689919a39
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -272,6 +272,9 @@ void InputsPanel::setSelectedByExpoList(QList<int> list)
void InputsPanel::exposDelete(bool ask)
{
QList<int> list = createExpoListFromSelected();
if(list.isEmpty()) return;
QMessageBox::StandardButton ret = QMessageBox::No;
if(ask)
@@ -281,7 +284,7 @@ void InputsPanel::exposDelete(bool ask)
if ((ret == QMessageBox::Yes) || (!ask)) {
exposDeleteList(createExpoListFromSelected());
exposDeleteList(list);
emit modified();
update();
}
+4 -1
View File
@@ -322,6 +322,9 @@ void MixesPanel::setSelectedByMixList(QList<int> list)
void MixesPanel::mixersDelete(bool ask)
{
QList<int> list = createMixListFromSelected();
if(list.isEmpty()) return;
QMessageBox::StandardButton ret = QMessageBox::No;
if(ask)
@@ -331,7 +334,7 @@ void MixesPanel::mixersDelete(bool ask)
if ((ret == QMessageBox::Yes) || (!ask)) {
mixersDeleteList(createMixListFromSelected());
mixersDeleteList(list);
emit modified();
update();
}