diff --git a/src/gui/res/MainWindowBase.ui b/src/gui/res/MainWindowBase.ui
index cc5a9d0c..88f07b27 100644
--- a/src/gui/res/MainWindowBase.ui
+++ b/src/gui/res/MainWindowBase.ui
@@ -307,6 +307,19 @@
QLayout::SetDefaultConstraint
+ -
+
+
+ true
+
+
+
+
+
+ :/res/icons/16x16/padlock.png
+
+
+
-
diff --git a/src/gui/res/Synergy.qrc b/src/gui/res/Synergy.qrc
index c9054378..a7027617 100644
--- a/src/gui/res/Synergy.qrc
+++ b/src/gui/res/Synergy.qrc
@@ -52,5 +52,6 @@
lang/Languages.xml
icons/16x16/money.png
image/spinning-wheel.gif
+ icons/16x16/padlock.png
diff --git a/src/gui/res/icons/16x16/padlock.png b/src/gui/res/icons/16x16/padlock.png
new file mode 100644
index 00000000..e313e97e
Binary files /dev/null and b/src/gui/res/icons/16x16/padlock.png differ
diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp
index 8233eb1a..2f652a5c 100644
--- a/src/gui/src/MainWindow.cpp
+++ b/src/gui/src/MainWindow.cpp
@@ -129,6 +129,8 @@ MainWindow::MainWindow(QSettings& settings, AppConfig& appConfig) :
m_pComboServerList->hide();
updateEdition();
+
+ m_pLabelPadlock->hide();
}
MainWindow::~MainWindow()
@@ -726,13 +728,22 @@ void MainWindow::setSynergyState(qSynergyState state)
switch (state)
{
case synergyConnected: {
+ if (m_AppConfig.getCryptoEnabled()) {
+ m_pLabelPadlock->show();
+ }
+ else {
+ m_pLabelPadlock->hide();
+ }
+
setStatus(tr("Synergy is running."));
break;
}
case synergyConnecting:
+ m_pLabelPadlock->hide();
setStatus(tr("Synergy is starting."));
break;
case synergyDisconnected:
+ m_pLabelPadlock->hide();
setStatus(tr("Synergy is not running."));
break;
}