[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: [PATCH] MDI/SDI option
From: Christian Loose <christian.loose () hamburg ! de>
Date: 2002-04-09 20:38:16
[Download RAW message or body]
Hello everybody,
This is a very small patch for the config dialog of kate. The dialog does=
not
show the correct value for the MDI/SDI option. It always shows the defaul=
t
value for this option, because the dialog tries to find the config entry
under the wrong group, "General" instead of "startup".
You can test this easily: switch to SDI mode + press OK + go back into
the config dialog.
The following patch should fix this. Please commit when correct, because
I don't have enough karma.
Bye
Christian Loose
["kateconfigdialog.patch" (text/x-diff)]
Index: kateconfigdialog.cpp
===================================================================
RCS file: /home/kdecvs/kde/kdebase/kate/app/kateconfigdialog.cpp,v
retrieving revision 1.23
diff -u -r1.23 kateconfigdialog.cpp
--- kateconfigdialog.cpp 6 Apr 2002 22:46:41 -0000 1.23
+++ kateconfigdialog.cpp 9 Apr 2002 20:26:08 -0000
@@ -95,9 +95,9 @@
QVBoxLayout *lo = new QVBoxLayout( frGeneral );
lo->setSpacing(KDialog::spacingHint());
lo->setAutoAdd( true );
- config->setGroup("General");
// sdi or mdi?
+ config->setGroup("startup");
QButtonGroup *bgMode = new QButtonGroup( 1, Qt::Horizontal, i18n("Application Mode"), frGeneral );
bgMode->setRadioButtonExclusive( true );
rb_modeMDI = new QRadioButton( i18n("Kate &MDI"), bgMode );
@@ -114,6 +114,8 @@
"in each window. The File List/File Selector will have it's own window by default. "
"You can <code>ALT-TAB</code> your way to the desired document."
"<p><strong>Note:</strong> You need to restart Kate for this setting to take effect.</qt>") );
+
+ config->setGroup("General");
// GROUP with the one below: "At Startup"
QButtonGroup *bgStartup = new QButtonGroup( 1, Qt::Horizontal, i18n("At Startup"), frGeneral );
_______________________________________________
kwrite-devel mailing list
kwrite-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic