mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-19 07:30:34 +02:00
Exit gracefully if no softkey definitions are found
This commit is contained in:
parent
e2fc500ec8
commit
3e25b1f646
@ -157,6 +157,17 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
}
|
||||
n++;
|
||||
}
|
||||
|
||||
//
|
||||
// If no softkeys have been defined, gracefully exit
|
||||
//
|
||||
if (!key_macros.size()) {
|
||||
QMessageBox::critical(this, tr("RDSoftKeys"),
|
||||
tr(QString("No SoftKey definitions found in file\n%1")
|
||||
.arg(map_filename)));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if((key_macros.size()%key_columns)==0) {
|
||||
key_ysize-=60;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user