Don't kill all buttons in all KDialogs ;-)
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=958273
This commit is contained in:
parent
8a9c925636
commit
56d76c0c8e
|
@ -95,6 +95,7 @@ if(PARTMAN_KCM)
|
|||
kde4_add_plugin(kcm_partitionmanager ${partitionmanagerkcm_SRCS})
|
||||
|
||||
target_link_libraries(kcm_partitionmanager
|
||||
${KDE4_KUTILS_LIBS}
|
||||
${KDE4_KDEUI_LIBS}
|
||||
partitionmanagerprivate
|
||||
)
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include <kactioncollection.h>
|
||||
#include <ktoolbar.h>
|
||||
#include <kapplication.h>
|
||||
#include <kcmultidialog.h>
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
|
@ -128,7 +129,7 @@ void PartitionManagerKCM::setupKCMWorkaround()
|
|||
// cannot handle... Nasty, but effective for now.
|
||||
foreach(QWidget* w, KApplication::topLevelWidgets())
|
||||
{
|
||||
KDialog* dlg = qobject_cast<KDialog*>(w);
|
||||
KCMultiDialog* dlg = qobject_cast<KCMultiDialog*>(w);
|
||||
if (dlg != NULL)
|
||||
{
|
||||
dlg->setButtons(KDialog::Cancel|KDialog::Apply);
|
||||
|
|
Loading…
Reference in New Issue