summaryrefslogtreecommitdiffstats
path: root/kcmshell
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-08 20:16:29 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-08 20:16:29 -0600
commit511779841007afca5231e6c69e996eba0295eaae (patch)
treeb730d389a8ece9421712ed1fc75ae81459d4ee0f /kcmshell
parent5f99a2718025c4f2fbef86a450423a9c61e297f9 (diff)
downloadtdelibs-511779841007afca5231e6c69e996eba0295eaae.tar.gz
tdelibs-511779841007afca5231e6c69e996eba0295eaae.zip
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
Diffstat (limited to 'kcmshell')
-rw-r--r--kcmshell/main.cpp4
1 files changed, 3 insertions, 1 deletions
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;