From 511779841007afca5231e6c69e996eba0295eaae Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 8 Jan 2013 20:16:29 -0600 Subject: Fix krandr crashes and uninitialized variables Work around kcmshell minimum size problem by using icon mode instead of plain page mode in the kcmshell janus widget --- kcmshell/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kcmshell') diff --git a/kcmshell/main.cpp b/kcmshell/main.cpp index 778c3b9a9..22e42fda3 100644 --- a/kcmshell/main.cpp +++ b/kcmshell/main.cpp @@ -282,7 +282,9 @@ extern "C" KDE_EXPORT int kdemain(int _argc, char *_argv[]) return 0; } - KDialogBase::DialogType dtype = KDialogBase::Plain; + //KDialogBase::DialogType dtype = KDialogBase::Plain; // FIXME + KDialogBase::DialogType dtype = KDialogBase::IconList; // Work around a bug whereby several kcontrol modules (such as displayconfig) use an incorrect size when loaded with kcmshell in the Plain mode + // This bug is possibly related to kcmultidialog.cpp:266 [( new TQHBoxLayout( page ) )->setAutoAdd( true );] if ( modules.count() < 1 ) return 0; -- cgit v1.2.1