[rkward/frameworks] rkward: Do longer need to worry about native file dialogs, apparently.

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Sun Feb 28 17:15:38 UTC 2016


Git commit ccecd476dc858335f11f4e1329de2344f2911f44 by Thomas Friedrichsmeier.
Committed on 28/02/2016 at 17:14.
Pushed by tfry into branch 'frameworks'.

Do longer need to worry about native file dialogs, apparently.

M  +1    -14   rkward/rkward.cpp

http://commits.kde.org/rkward/ccecd476dc858335f11f4e1329de2344f2911f44

diff --git a/rkward/rkward.cpp b/rkward/rkward.cpp
index 2a7979e..4a0f51e 100644
--- a/rkward/rkward.cpp
+++ b/rkward/rkward.cpp
@@ -208,20 +208,7 @@ void RKWardMainWindow::doPostInit () {
 	gui_rebuild_locked = false;
 
 	show ();
-#ifdef Q_OS_WIN
-	// KF5 TODO: Still needed?
-	// detect and disable the buggy "native" file dialogs
-	KConfigGroup cg = KSharedConfig::openConfig ().data ()->group ("KFileDialog Settings");
-	if (cg.readEntry ("Native", true)) {
-		int res = KMessageBox::questionYesNo (this, i18n ("Your installation of KDE is configured to use \"native\" file dialogs. This is known to cause issues in some cases, and we recommend to disable \"native\" file dialogs.\nShould \"native\" file dialogs be disabled in RKWard?"),
-							i18n ("Potential problem with your configuration"), KGuiItem (i18n ("Yes, disable")), KGuiItem (i18n ("No, use \"native\" file dialogs")), "windows_native_kfiledialog");
-		if (res != KMessageBox::No) {
-			cg.writeEntry ("Native", false);
-			cg.sync ();
-		}
-	}
-#endif
-	KMessageBox::enableMessage ("external_link_warning");
+	KMessageBox::enableMessage ("external_link_warning");  // can only be disabled per session
 
 	QUrl recover_url = RKRecoverDialog::checkRecoverCrashedWorkspace ();
 	if (!recover_url.isEmpty ()) {



More information about the rkward-tracker mailing list