]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiApplication.cpp
Cleanup LyXFunc::dispatch() following JMarc advice.
[lyx.git] / src / frontends / qt4 / GuiApplication.cpp
index ee1c7db1e6c614795a6dfbcb88547d4a12170b3f..148166312ac719b205bfc225c73a2a6c8ba06217 100644 (file)
@@ -237,7 +237,7 @@ FuncStatus GuiApplication::getStatus(FuncRequest const & cmd)
 }
 
        
-void GuiApplication::dispatch(FuncRequest const & cmd)
+bool GuiApplication::dispatch(FuncRequest const & cmd)
 {
        switch(cmd.action) {
 
@@ -281,8 +281,12 @@ void GuiApplication::dispatch(FuncRequest const & cmd)
        }
 
        default:
-               break;
+               // Notify the caller that the action has not been dispatched.
+               return false;
        }
+
+       // The action has been dispatched.
+       return true;
 }