From 389fc0c1ee090005526b37d5239e2c398001e49a Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 18 Apr 2018 21:37:09 +0200 Subject: [PATCH] GUI: Fix wrong receivers in connect calls (#1178) Since the slots (functions) are not existent in the class MainWindow and Qt complains that it can not connect the slots i guess it has been forgotten to change the receiver. The ResultsView class (from which mUI.mResults is an instance) contains these slots, so i guess they should be connected there. --- gui/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index c0e83c870..883ad3c7f 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -536,9 +536,9 @@ void MainWindow::analyzeCode(const QString& code, const QString& filename) connect(&result, SIGNAL(error(const ErrorItem &)), mUI.mResults, SLOT(error(const ErrorItem &))); connect(&result, SIGNAL(log(const QString &)), - this, SLOT(log(const QString &))); + mUI.mResults, SLOT(log(const QString &))); connect(&result, SIGNAL(debugError(const ErrorItem &)), - this, SLOT(debugError(const ErrorItem &))); + mUI.mResults, SLOT(debugError(const ErrorItem &))); // Create CppCheck instance CppCheck cppcheck(result, true);