]> git.lyx.org Git - features.git/commit
Remove a sometimes blocked call to dispatch
authorScott Kostyshak <skostysh@lyx.org>
Mon, 7 Aug 2017 05:54:55 +0000 (01:54 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 12 Aug 2017 15:46:11 +0000 (11:46 -0400)
commitacc1cc394fd53747983be156b78736c0a4d8e9ff
treea06ab5b71cebb6ecddea74280b35fe4c79acca45
parent9a42154107ad8b87ba6969dc8cc048060080d299
Remove a sometimes blocked call to dispatch

Dispatching LFUN_BUFFER_ZOOM inside of GuiView::restoreLayout() was
blocked in some cases because the function can be called without a
buffer (and the LFUN is marked as needing a buffer). Instead of
conditioning on a buffer, the call is removed because in testing it
does not appear why it is needed.

This commit removes the status message that is displayed if starting
LyX without opening a buffer:

    "Command not allowed without any document open"

See discussion at:

    https://www.mail-archive.com/search?l=mid&q=20170718084344.3kjmu7hzoyajt7vd%40steph

This commit amends 4183a9f4.
src/frontends/qt4/GuiView.cpp