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.
This commit is contained in:
Sebastian 2018-04-18 21:37:09 +02:00 committed by GitHub
parent 4b8769a9f5
commit 389fc0c1ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);