Diffstat (limited to 'microkde/kutils/kcmultidialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | microkde/kutils/kcmultidialog.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/microkde/kutils/kcmultidialog.cpp b/microkde/kutils/kcmultidialog.cpp index 6c82e4f..e7aa9d1 100644 --- a/microkde/kutils/kcmultidialog.cpp +++ b/microkde/kutils/kcmultidialog.cpp | |||
@@ -72,47 +72,50 @@ void KCMultiDialog::slotDefault() | |||
72 | QPtrListIterator<KCModule> it(modules); | 72 | QPtrListIterator<KCModule> it(modules); |
73 | for (; it.current(); ++it) | 73 | for (; it.current(); ++it) |
74 | { | 74 | { |
75 | if (pageIndex((QWidget *)(*it)->parent()) == curPageIndex) | 75 | if (pageIndex((QWidget *)(*it)->parent()) == curPageIndex) |
76 | { | 76 | { |
77 | (*it)->defaults(); | 77 | (*it)->defaults(); |
78 | clientChanged(true); | 78 | clientChanged(true); |
79 | return; | 79 | return; |
80 | } | 80 | } |
81 | } | 81 | } |
82 | 82 | ||
83 | } | 83 | } |
84 | 84 | void KCMultiDialog::accept() | |
85 | { | ||
86 | slotOk(); | ||
87 | } | ||
85 | void KCMultiDialog::slotApply() | 88 | void KCMultiDialog::slotApply() |
86 | { | 89 | { |
87 | qDebug("KCMultiDialog::slotApply clicked"); | 90 | qDebug("KCMultiDialog::slotApply clicked"); |
88 | 91 | ||
89 | QPtrListIterator<KCModule> it(modules); | 92 | QPtrListIterator<KCModule> it(modules); |
90 | for (; it.current(); ++it) | 93 | for (; it.current(); ++it) |
91 | (*it)->save(); | 94 | (*it)->save(); |
92 | clientChanged(false); | 95 | clientChanged(false); |
93 | 96 | ||
94 | emit applyClicked(); | 97 | emit applyClicked(); |
95 | 98 | ||
96 | } | 99 | } |
97 | 100 | ||
98 | 101 | ||
99 | void KCMultiDialog::slotOk() | 102 | void KCMultiDialog::slotOk() |
100 | { | 103 | { |
101 | qDebug("KCMultiDialog::slotOk clicked"); | 104 | qDebug("KCMultiDialog::slotOk clicked"); |
102 | 105 | ||
103 | QPtrListIterator<KCModule> it(modules); | 106 | QPtrListIterator<KCModule> it(modules); |
104 | for (; it.current(); ++it) | 107 | for (; it.current(); ++it) |
105 | (*it)->save(); | 108 | (*it)->save(); |
106 | accept(); | 109 | QDialog::accept(); |
107 | 110 | ||
108 | emit okClicked(); | 111 | emit okClicked(); |
109 | } | 112 | } |
110 | 113 | ||
111 | void KCMultiDialog::slotHelp() | 114 | void KCMultiDialog::slotHelp() |
112 | { | 115 | { |
113 | /*US | 116 | /*US |
114 | KURL url( KURL("help:/"), _docPath ); | 117 | KURL url( KURL("help:/"), _docPath ); |
115 | 118 | ||
116 | if (url.protocol() == "help" || url.protocol() == "man" || url.protocol() == "info") { | 119 | if (url.protocol() == "help" || url.protocol() == "man" || url.protocol() == "info") { |
117 | KProcess process; | 120 | KProcess process; |
118 | process << "khelpcenter" | 121 | process << "khelpcenter" |