This commit is contained in:
craig.p.drummond
2013-04-24 18:29:58 +00:00
committed by craig.p.drummond
parent cf77dae570
commit 39e90cd6cb
3 changed files with 35 additions and 105 deletions

View File

@@ -539,8 +539,6 @@ void DevicesPage::toggleDevice()
}
}
#define DIALOG_ERROR MessageBox::error(this, i18n("Please close other dialogs first.")); return
void DevicesPage::sync()
{
if (0!=SyncDialog::instanceCount()) {
@@ -553,7 +551,8 @@ void DevicesPage::sync()
|| 0!=RgDialog::instanceCount()
#endif
) {
DIALOG_ERROR;
MessageBox::error(this, i18n("Please close other dialogs first."));
return;
}
const QModelIndexList selected = view->selectedIndexes();