summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-02-11 17:02:50 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-02-11 12:53:57 -0800
commit1f80e100bbe54e3ab185f3107debad69f6aceb08 (patch)
tree4795f8c062ef78c69835dfa14e8818b196dfb438 /desktop-widgets
parent1127a425dec2d90240364e3b508e9d26f51e362f (diff)
downloadsubsurface-1f80e100bbe54e3ab185f3107debad69f6aceb08.tar.gz
Cleanup: fix emits in WinBluetoothDeviceDiscoveryAgent
As far as I know, Qt's emit is defined to nothing. Thus, the construct "emit(lastError);" is compiled to "(lastError);", which is a no-op. Obviously "emit error(lastError)" was meant. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/btdeviceselectiondialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/btdeviceselectiondialog.cpp b/desktop-widgets/btdeviceselectiondialog.cpp
index a029765e5..89fd34b53 100644
--- a/desktop-widgets/btdeviceselectiondialog.cpp
+++ b/desktop-widgets/btdeviceselectiondialog.cpp
@@ -668,7 +668,7 @@ void WinBluetoothDeviceDiscoveryAgent::run()
// Get the last error and emit a signal
lastErrorToString = qt_error_string();
lastError = QBluetoothDeviceDiscoveryAgent::UnknownError;
- emit(lastError);
+ emit error(lastError);
break;
}
@@ -690,7 +690,7 @@ void WinBluetoothDeviceDiscoveryAgent::run()
// Get the last error and emit a signal
lastErrorToString = qt_error_string();
lastError = QBluetoothDeviceDiscoveryAgent::UnknownError;
- emit(lastError);
+ emit error(lastError);
}
}