]> git.sur5r.net Git - minitube/blob - lib/updater/src/impl/openinstaller.cpp
New upstream version 3.8
[minitube] / lib / updater / src / impl / openinstaller.cpp
1 #include "openinstaller.h"
2
3 #include <QDesktopServices>
4
5 namespace updater {
6
7 OpenInstaller::OpenInstaller() {}
8
9 void updater::OpenInstaller::start(const QString &filename) {
10     if (!QDesktopServices::openUrl(QUrl("file:///" + filename))) emit error("Cannot start update");
11 }
12
13 } // namespace updater