From 207247b7efe143255d4b57784f67852d55666eb6 Mon Sep 17 00:00:00 2001 From: Jamie Newbon Date: Tue, 30 Apr 2019 15:40:29 +0100 Subject: [PATCH] #6471 Replaced tabs with spaces --- src/gui/src/MainWindow.cpp | 32 +++++++++++++++---------------- src/lib/platform/XWindowsUtil.cpp | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index bbb022c4..ae53493b 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -66,11 +66,11 @@ static const int debugLogLevel = 1; static const char* synergyIconFiles[] = { - ":/res/icons/16x16/synergy-disconnected.png", //synergyDisconnected - ":/res/icons/16x16/synergy-disconnected.png", //synergyConnecting - ":/res/icons/16x16/synergy-connected.png", //synergyConnected - ":/res/icons/16x16/synergy-transfering.png", //synergyListening - ":/res/icons/16x16/synergy-disconnected.png" //synergyPendingRetry + ":/res/icons/16x16/synergy-disconnected.png", //synergyDisconnected + ":/res/icons/16x16/synergy-disconnected.png", //synergyConnecting + ":/res/icons/16x16/synergy-connected.png", //synergyConnected + ":/res/icons/16x16/synergy-transfering.png", //synergyListening + ":/res/icons/16x16/synergy-disconnected.png" //synergyPendingRetry }; #ifdef SYNERGY_ENTERPRISE @@ -714,12 +714,12 @@ void MainWindow::startSynergy() void MainWindow::retryStart() { - //This function is only called after a failed start - //Only start synergy if the current state is pending retry - if (m_SynergyState == synergyPendingRetry) - { - startSynergy(); - } + //This function is only called after a failed start + //Only start synergy if the current state is pending retry + if (m_SynergyState == synergyPendingRetry) + { + startSynergy(); + } } void @@ -946,7 +946,7 @@ void MainWindow::synergyFinished(int exitCode, QProcess::ExitStatus) if (m_ExpectedRunningState == kStarted) { - setSynergyState(synergyPendingRetry); + setSynergyState(synergyPendingRetry); QTimer::singleShot(1000, this, SLOT(retryStart())); appendLogInfo(QString("detected process not running, auto restarting")); } @@ -967,7 +967,7 @@ void MainWindow::setSynergyState(qSynergyState state) if (synergyState() == state) return; - if ((state == synergyConnected) || (state == synergyConnecting) || (state == synergyListening) || (state == synergyPendingRetry)) + if ((state == synergyConnected) || (state == synergyConnecting) || (state == synergyListening) || (state == synergyPendingRetry)) { disconnect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStartSynergy, SLOT(trigger())); connect (m_pButtonToggleStart, SIGNAL(clicked()), m_pActionStopSynergy, SLOT(trigger())); @@ -1010,9 +1010,9 @@ void MainWindow::setSynergyState(qSynergyState state) } case synergyConnecting: setStatus(tr("Synergy is starting...")); - break; - case synergyPendingRetry: - setStatus(tr("There was an error, retrying...")); + break; + case synergyPendingRetry: + setStatus(tr("There was an error, retrying...")); break; case synergyDisconnected: setStatus(tr("Synergy is not running")); diff --git a/src/lib/platform/XWindowsUtil.cpp b/src/lib/platform/XWindowsUtil.cpp index cfef8cf4..59e26b52 100644 --- a/src/lib/platform/XWindowsUtil.cpp +++ b/src/lib/platform/XWindowsUtil.cpp @@ -1303,7 +1303,7 @@ XWindowsUtil::getWindowProperty(Display* display, Window window, int actualDatumSize; // ignore errors. XGetWindowProperty() will report failure. - XWindowsUtil::ErrorLock lock(display); + // XWindowsUtil::ErrorLock lock(display); // read the property bool okay = true;