From 9fff9d674326f688b883ba1eff282708b4ff6bbc Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Sat, 21 Mar 2015 16:16:53 +0300 Subject: [PATCH] Typo fix --- mainwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 46cdb00..cbeeff6 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -91,9 +91,6 @@ MainWindow::MainWindow(QWidget *parent) : userHistoryPos = 0; userHistory.append(""); - //Update serial ports - serialupdate(); - //Register all the types qRegisterMetaType("TemperatureReadings"); qRegisterMetaType("SDProgress"); @@ -150,6 +147,9 @@ MainWindow::MainWindow(QWidget *parent) : sinceLastTemp->start(); sinceLastSDStatus->start(); + //Update serial ports + serialupdate(); + //Update recent files list updateRecent(); } @@ -612,7 +612,7 @@ void MainWindow::updateRecent() action->setText(str); //Set filepath as a title action->setObjectName(str); //Also set name to the path so we can get it later recentMenu->addAction(action); //Add action to the menu - connect(action, &QAction::trigger, this, &MainWindow::recentClicked); + connect(action, &QAction::triggered, this, &MainWindow::recentClicked); } } }