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
1 changed files with 5 additions and 4 deletions

View File

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