From 794551660fb51fb5b9d449a5dcd0d1c27e31d059 Mon Sep 17 00:00:00 2001 From: Alexandre Arnt Date: Tue, 26 Sep 2023 19:34:49 -0300 Subject: [PATCH] - BugFix: Notifier's output dialog did not save its size/position. - BugFix: Notifier was asking for a password when user tried to "Sync database". --- CHANGELOG | 4 +++- notifier/mainwindow.cpp | 2 +- notifier/outputdialog.cpp | 4 +++- src/strconstants.cpp | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index cba3165..74e3b1b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,8 @@ -0.3.2 (dev) +0.3.2 (2023/09/26) Make code compatible with Qt5/Qt6 libs. Updated project site to tintaescura.com. + BugFix: Notifier's output dialog did not save its size/position. + BugFix: Notifier was asking for a password when user tried to "Sync database". 0.3.1 (2023/09/08) Added german translation (thanks to Leon Schumacher - 42LoCo42). diff --git a/notifier/mainwindow.cpp b/notifier/mainwindow.cpp index 030f312..b312f85 100644 --- a/notifier/mainwindow.cpp +++ b/notifier/mainwindow.cpp @@ -574,7 +574,7 @@ void MainWindow::startPkexec() sl << ctn_OCTOXBPS_SUDO_PARAMS; sl << QStringLiteral("/usr/bin/xbps-install"); sl << QStringLiteral("-Sy"); - xbps->start(WMHelper::getSUCommand(), sl); + xbps->start("pkexec", sl); } /* diff --git a/notifier/outputdialog.cpp b/notifier/outputdialog.cpp index 0adeb38..01fcc51 100644 --- a/notifier/outputdialog.cpp +++ b/notifier/outputdialog.cpp @@ -232,6 +232,7 @@ void OutputDialog::reject() //Let's save the dialog size value before closing it. QByteArray windowSize=saveGeometry(); SettingsManager::setOutputDialogWindowSize(windowSize); + QDialog::reject(); } } @@ -373,7 +374,8 @@ void OutputDialog::closeEvent(QCloseEvent *event) cancelUpgrade(); m_upgradeRunning = false; emit finished(-1); - event->accept(); + //event->accept(); + reject(); } else { diff --git a/src/strconstants.cpp b/src/strconstants.cpp index 819eee6..30f3b0a 100644 --- a/src/strconstants.cpp +++ b/src/strconstants.cpp @@ -28,7 +28,7 @@ QString StrConstants::getApplicationName(){ } QString StrConstants::getApplicationVersion(){ - return "0.3.2 (dev)"; + return "0.3.2"; } QString StrConstants::getQtVersion(){