This commit is contained in:
gangphon 2023-05-18 20:53:43 +08:00
parent dc8e119c0c
commit 537db4b375
2 changed files with 2 additions and 1 deletions

View File

@ -199,6 +199,7 @@ inline int verCompare(const QString& a, const QString& b) {
int bbb = bparts[i].toInt();
if(aaa != bbb) return aaa - bbb;
}
if(aparts.count() == bparts.count()) return 0;
return aparts.count() > bparts.count() ? aparts[cnt].toInt() : bparts[cnt].toInt();
}

View File

@ -259,7 +259,7 @@ MainWindow::MainWindow(QWidget *parent) : BaseWin(parent) {
qFile.close();
if(res != QDialog::Accepted) return;
QApplication::quit();
QDesktopServices::openUrl("file://"+filePath);
QDesktopServices::openUrl(QUrl::fromLocalFile(filePath));
});
menu_setting->addAction(act_update);