From 312bb47dd53f3bccc49d4f2815128a22dff81571 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 19 Jun 2008 07:40:29 +0000 Subject: [PATCH] Some more fixes to icon size and session settings. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25317 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiApplication.cpp | 4 ---- src/frontends/qt4/GuiToolbar.cpp | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index f29f24a0b8..374480f6ee 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -913,10 +913,6 @@ void GuiApplication::createView(QString const & geometry_arg, bool autoShow) id++; GuiView * view = new GuiView(id); - // copy the icon size from old view - if (current_view_) - view->setIconSize(current_view_->iconSize()); - // register view d->views_[id] = view; diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index 1324e76f9d..f8a78b08e9 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -668,6 +668,7 @@ GuiToolbar::GuiToolbar(ToolbarInfo const & tbinfo, GuiView & owner) allowauto_(false), owner_(owner), layout_(0), command_buffer_(0), tbinfo_(tbinfo), filled_(false) { + setIconSize(owner.iconSize()); connect(&owner, SIGNAL(iconSizeChanged(QSize)), this, SLOT(setIconSize(QSize)));