diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index 4d6882a69fccc92583e5df4f6e3832e7c17d0cb4..46d4406d98e27c500bf664961c71334c82579414 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -1347,7 +1347,7 @@ void MainWindow::restoreLastUsedConnection() QString key(MAIN_SETTINGS_GROUP); key += "/LAST_CONNECTION"; if(settings.contains(key)) { - connection = settings.value(key).toString(); + QString connection = settings.value(key).toString(); // Create a link for it LinkInterface* link = LinkManager::instance()->createLink(connection); if(link) {