mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-15 14:51:28 +03:00
Don't quit on pkexec fail after refresh
This commit is contained in:
@@ -738,7 +738,9 @@ QString MainWindow::getSmartctlOutput(const QStringList &arguments, bool root)
|
|||||||
|
|
||||||
if (process.exitCode() == 127) {
|
if (process.exitCode() == 127) {
|
||||||
QMessageBox::critical(this, tr("KDiskInfo Error"), tr("KDiskInfo needs root access in order to read S.M.A.R.T. data!"));
|
QMessageBox::critical(this, tr("KDiskInfo Error"), tr("KDiskInfo needs root access in order to read S.M.A.R.T. data!"));
|
||||||
QTimer::singleShot(0, qApp, &QApplication::quit);
|
if (initializing) {
|
||||||
|
QTimer::singleShot(0, qApp, &QApplication::quit);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return process.readAllStandardOutput();
|
return process.readAllStandardOutput();
|
||||||
|
|||||||
Reference in New Issue
Block a user