author | paule <paule> | 2007-01-31 09:12:36 (UTC) |
---|---|---|
committer | paule <paule> | 2007-01-31 09:12:36 (UTC) |
commit | e9c5c237e27d908c890779215b19c22a3706b614 (patch) (unidiff) | |
tree | 246a2447df7b7a1e4236d8dd8bd589041734a6a9 | |
parent | 3a2db1ba1395a6d33de421ed5f3b04df53ced5bc (diff) | |
download | opie-e9c5c237e27d908c890779215b19c22a3706b614.zip opie-e9c5c237e27d908c890779215b19c22a3706b614.tar.gz opie-e9c5c237e27d908c890779215b19c22a3706b614.tar.bz2 |
Don't allow configuring buttons with no remote layout selected
-rw-r--r-- | noncore/tools/remote/configtab.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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) | |||
211 | 211 | ||
212 | void ConfigTab::buttonPressed() | 212 | void ConfigTab::buttonPressed() |
213 | { | 213 | { |
214 | QString curr_remote = topGroupConf->getRemotesText(); | ||
215 | if(curr_remote != "") | ||
216 | cfg->setGroup(curr_remote); | ||
217 | else { | ||
218 | QMessageBox::warning(this, tr("Error"), tr("Please select or create\na remote layout"), QMessageBox::Ok, QMessageBox::NoButton); | ||
219 | return; | ||
220 | } | ||
221 | |||
214 | const QObject *button = sender(); | 222 | const QObject *button = sender(); |
215 | QString string = button->name(); | 223 | QString string = button->name(); |
216 | 224 | ||