diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index ec7b4910..69b6b5b5 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -1256,8 +1256,12 @@ void MainWindow::downloadBonjour() void MainWindow::installBonjour() { #if defined(Q_OS_WIN) +#if QT_VERSION >= 0x050000 + QString tempLocation = QStandardPaths::writableLocation(QStandardPaths::TempLocation); +#else QString tempLocation = QDesktopServices::storageLocation( QDesktopServices::TempLocation); +#endif QString filename = tempLocation; filename.append("\\").append(bonjourTargetFilename); QFile file(filename);