Suppressed auto connect warning on startup #4240
This commit is contained in:
parent
9ef6c87857
commit
af4817d075
|
@ -85,7 +85,8 @@ MainWindow::MainWindow(QSettings& settings, AppConfig& appConfig) :
|
||||||
m_pZeroconfService(NULL),
|
m_pZeroconfService(NULL),
|
||||||
m_pDataDownloader(NULL),
|
m_pDataDownloader(NULL),
|
||||||
m_DownloadMessageBox(NULL),
|
m_DownloadMessageBox(NULL),
|
||||||
m_pCancelButton(NULL)
|
m_pCancelButton(NULL),
|
||||||
|
m_SuppressAutoConnectWarning(false)
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
|
@ -115,7 +116,9 @@ MainWindow::MainWindow(QSettings& settings, AppConfig& appConfig) :
|
||||||
setMinimumSize(size());
|
setMinimumSize(size());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
m_SuppressAutoConnectWarning = true;
|
||||||
m_pCheckBoxAutoConnect->setChecked(appConfig.autoConnect());
|
m_pCheckBoxAutoConnect->setChecked(appConfig.autoConnect());
|
||||||
|
m_SuppressAutoConnectWarning = false;
|
||||||
|
|
||||||
m_pComboServerList->hide();
|
m_pComboServerList->hide();
|
||||||
}
|
}
|
||||||
|
@ -970,7 +973,7 @@ void MainWindow::on_m_pButtonApply_clicked()
|
||||||
|
|
||||||
void MainWindow::on_m_pCheckBoxAutoConnect_toggled(bool checked)
|
void MainWindow::on_m_pCheckBoxAutoConnect_toggled(bool checked)
|
||||||
{
|
{
|
||||||
if (!isBonjourRunning() && checked) {
|
if (!isBonjourRunning() && checked && !m_SuppressAutoConnectWarning) {
|
||||||
int r = QMessageBox::information(
|
int r = QMessageBox::information(
|
||||||
this, tr("Synergy"),
|
this, tr("Synergy"),
|
||||||
tr("Auto connect feature requires Bonjour.\n\n"
|
tr("Auto connect feature requires Bonjour.\n\n"
|
||||||
|
|
|
@ -187,6 +187,7 @@ class MainWindow : public QMainWindow, public Ui::MainWindowBase
|
||||||
QMessageBox* m_DownloadMessageBox;
|
QMessageBox* m_DownloadMessageBox;
|
||||||
QAbstractButton* m_pCancelButton;
|
QAbstractButton* m_pCancelButton;
|
||||||
QMutex m_Mutex;
|
QMutex m_Mutex;
|
||||||
|
bool m_SuppressAutoConnectWarning;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_m_pComboServerList_currentIndexChanged(QString );
|
void on_m_pComboServerList_currentIndexChanged(QString );
|
||||||
|
|
Loading…
Reference in New Issue