Solved #4196 by download and open Bonjour installer

This commit is contained in:
Xinyu Hou 2014-11-13 12:27:28 +00:00
parent 376c983d21
commit 6fd8afafbd

View File

@ -918,11 +918,10 @@ void MainWindow::on_m_pAutoConnectCheckBox_toggled(bool checked)
if (r == QMessageBox::Yes) {
downloadBonjour();
}
else {
m_pAutoConnectCheckBox->setChecked(false);
return;
}
}
m_pLineEditHostname->setDisabled(checked);
appConfig().setAutoConnect(checked);
@ -1029,6 +1028,8 @@ void MainWindow::installBonjour()
file.write(m_pDataDownloader->downloadedData());
file.close();
QDesktopServices::openUrl(QUrl("file:///" + filename));
m_DownloadMessageBox->hide();
}