]> git.lyx.org Git - features.git/commit
Fix bug 5785: http://bugzilla.lyx.org/show_bug.cgi?id=5785.
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 18 Feb 2009 23:45:00 +0000 (23:45 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 18 Feb 2009 23:45:00 +0000 (23:45 +0000)
commitc85e24b0669936e15b35bf0f9b705ca6951b8297
tree4ddb02eefcbd7937ad091da8da4937b267d8ceef
parent106adc4b42ea4532f761d639959329a460df28cf
Fix bug 5785: http://bugzilla.lyx.org/show_bug.cgi?id=5785.
Reference dialog update crash for read-only documents.

Comments:
* -1 is a valid return of bufferCO->currentIndex() so we need to test for it.
* set the correct enabling of the button in case no call to updateContents follows.
* remove unneeded call to setFocusProxy. The widget is either disabled or the focus proxy is set in updateRefs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28547 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/qt4/GuiRef.cpp