- Add upstream patches to not show the system configuration problems dialog if disabled (kde#381368, boo#1051368) * Fix-do-not-show-again.patch * Add-readCheckSystemConfig.patch OBS-URL: https://build.opensuse.org/request/show/513701 OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/k3b?expand=0&rev=30
54 lines
1.7 KiB
Diff
54 lines
1.7 KiB
Diff
From c1fae2adc90fac9a2af11ec9ef95ecc12033fa41 Mon Sep 17 00:00:00 2001
|
|
From: Leslie Zhai <lesliezhai@llvm.org.cn>
|
|
Date: Mon, 19 Jun 2017 16:42:41 +0800
|
|
Subject: Fix "do not show again" from system configuration problems dialog is
|
|
not remembered
|
|
|
|
BUG: 381368
|
|
REVIEW: 130162
|
|
---
|
|
src/k3bsystemproblemdialog.cpp | 11 +++++------
|
|
src/k3bsystemproblemdialog.h | 2 +-
|
|
2 files changed, 6 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/src/k3bsystemproblemdialog.cpp b/src/k3bsystemproblemdialog.cpp
|
|
index 9dfc50c..126ad31 100644
|
|
--- a/src/k3bsystemproblemdialog.cpp
|
|
+++ b/src/k3bsystemproblemdialog.cpp
|
|
@@ -159,14 +159,13 @@ K3b::SystemProblemDialog::SystemProblemDialog( const QList<K3b::SystemProblem>&
|
|
}
|
|
|
|
|
|
-void K3b::SystemProblemDialog::closeEvent( QCloseEvent* e )
|
|
+void K3b::SystemProblemDialog::done(int r)
|
|
{
|
|
- if( m_checkDontShowAgain->isChecked() ) {
|
|
- KConfigGroup grp( KSharedConfig::openConfig(), "General Options" );
|
|
- grp.writeEntry( "check system config", false );
|
|
+ if (m_checkDontShowAgain->isChecked()) {
|
|
+ KConfigGroup grp(KSharedConfig::openConfig(), "General Options");
|
|
+ grp.writeEntry("check system config", false);
|
|
}
|
|
-
|
|
- e->accept();
|
|
+ QDialog::done(r);
|
|
}
|
|
|
|
|
|
diff --git a/src/k3bsystemproblemdialog.h b/src/k3bsystemproblemdialog.h
|
|
index b45f2f8..b406b25 100644
|
|
--- a/src/k3bsystemproblemdialog.h
|
|
+++ b/src/k3bsystemproblemdialog.h
|
|
@@ -81,7 +81,7 @@ namespace K3b {
|
|
static void checkSystem( QWidget* parent = 0, NotificationLevel level = NotifyOnlyErrors );
|
|
|
|
protected:
|
|
- void closeEvent( QCloseEvent* );
|
|
+ void done(int) Q_DECL_OVERRIDE;
|
|
|
|
private Q_SLOTS:
|
|
void slotShowDeviceSettings();
|
|
--
|
|
cgit v0.11.2
|
|
|