mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-24 15:29:18 +00:00
Fix snore settings if no app is specified$
This commit is contained in:
parent
de33e8e913
commit
9dcad1416c
@ -37,13 +37,12 @@ SettingsWindow::SettingsWindow(const QString &appName, QWidget *parent) :
|
||||
ui->setupUi(this);
|
||||
ui->widget->show();
|
||||
|
||||
if (appName.isEmpty()) {
|
||||
if (appName == QLatin1String("global")) {
|
||||
QStringList list = knownApps();
|
||||
list.removeAll(qApp->applicationName());
|
||||
ui->comboBox->addItems(list);
|
||||
} else {
|
||||
if (!knownApps().contains(appName)) {
|
||||
|
||||
std::wcerr << "Error: " << appName.toUtf8().constData() << " is not known to Snorenotify" << std::endl;
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user