[Kst] kst_hfi_calib_branch: kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu Nov 18 00:28:22 CET 2004
CVS commit by staikos:
merge ok doubleclick fix from HEAD
M +18 -2 dataobjectdialog.h 1.6.2.1
--- kdeextragear-2/kst/kst/dataobjectdialog.h #1.6:1.6.2.1
@@ -62,4 +62,6 @@ void DIALOGTYPE::show_Edit(const QString
show();
raise();
+ _OK->setEnabled(true);
+ _cancel->setEnabled(true);
}
@@ -75,11 +77,25 @@ void DIALOGTYPE::show_New() {
show();
raise();
+ _OK->setEnabled(true);
+ _cancel->setEnabled(true);
}
void DIALOGTYPE::OK() {
+ _OK->setEnabled(false);
+ _cancel->setEnabled(false);
if (_newDialog || (DP == 0L)) {
- if (new_I()) close();
+ if (new_I()) {
+ close();
} else {
- if (edit_I()) close();
+ _OK->setEnabled(true);
+ _cancel->setEnabled(true);
+ }
+ } else {
+ if (edit_I()) {
+ close();
+ } else {
+ _OK->setEnabled(true);
+ _cancel->setEnabled(true);
+ }
}
}
More information about the Kst
mailing list