diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index eacbc142a7..fb93ae2903 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -1384,7 +1384,9 @@ void TabWorkArea::showBar(bool show) tabBar()->setEnabled(show); tabBar()->setVisible(show); closeBufferButton->setVisible(show && lyxrc.single_close_tab_button); +#if QT_VERSION >= 0x040500 setTabsClosable(!lyxrc.single_close_tab_button); +#endif }