diff options
author | deva <deva> | 2011-04-13 12:16:56 +0000 |
---|---|---|
committer | deva <deva> | 2011-04-13 12:16:56 +0000 |
commit | 175d195c0ed56487322a03939a1c60cb05cb3f8e (patch) | |
tree | 0524e21caa29cc68dded49ae68a62d0e603df797 /client/macrowindow.cc | |
parent | cb6c72436d96cc85d3442aeaf25ead4245420f8d (diff) |
Introduce new committable/preCommit methods, that can be used to block a commit from inside the widgets.
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r-- | client/macrowindow.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/macrowindow.cc b/client/macrowindow.cc index 00eb1ed..bbfab8e 100644 --- a/client/macrowindow.cc +++ b/client/macrowindow.cc @@ -165,6 +165,8 @@ void MacroWindow::initMacro(QDomNode &node) bool MacroWindow::doCommit() { + if(mainwidget->committable(true) == false) return false; + if(mainwidget->valid()) { QVector< Widget* > wlist; |