Commit ec4378d7 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #1342 from Susurrus/changes

Couple o' changes
parents 61bc6f35 e5062669
......@@ -54,8 +54,8 @@ GAudioOutput::GAudioOutput(QObject *parent) :
muted |= qgcApp()->runningUnitTests();
worker->moveToThread(thread);
connect(this, SIGNAL(textToSpeak(QString,int)), worker, SLOT(say(QString,int)));
connect(this, SIGNAL(beepOnce()), worker, SLOT(beep()));
connect(this, &GAudioOutput::textToSpeak, worker, &QGCAudioWorker::say);
connect(this, &GAudioOutput::beepOnce, worker, &QGCAudioWorker::beep);
thread->start();
}
......
......@@ -1346,9 +1346,8 @@ void MainWindow::restoreLastUsedConnection()
QSettings settings;
QString key(MAIN_SETTINGS_GROUP);
key += "/LAST_CONNECTION";
QString connection;
if(settings.contains(key)) {
connection = settings.value(connection).toString();
QString connection = settings.value(key).toString();
// Create a link for it
LinkInterface* link = LinkManager::instance()->createLink(connection);
if(link) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment