From e9c5c237e27d908c890779215b19c22a3706b614 Mon Sep 17 00:00:00 2001 From: paule Date: Wed, 31 Jan 2007 09:12:36 +0000 Subject: Don't allow configuring buttons with no remote layout selected --- (limited to 'noncore') diff --git a/noncore/tools/remote/configtab.cpp b/noncore/tools/remote/configtab.cpp index af2b5ff..7951772 100644 --- a/noncore/tools/remote/configtab.cpp +++ b/noncore/tools/remote/configtab.cpp @@ -211,6 +211,14 @@ void ConfigTab::remoteSelected(const QString &string) void ConfigTab::buttonPressed() { + QString curr_remote = topGroupConf->getRemotesText(); + if(curr_remote != "") + cfg->setGroup(curr_remote); + else { + QMessageBox::warning(this, tr("Error"), tr("Please select or create\na remote layout"), QMessageBox::Ok, QMessageBox::NoButton); + return; + } + const QObject *button = sender(); QString string = button->name(); -- cgit v0.9.0.2