ledok
This commit is contained in:
parent
dc8e119c0c
commit
537db4b375
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user