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
This commit is contained in:
Abdelrazak Younes 2008-06-19 07:40:29 +00:00
parent 1009aed25a
commit 312bb47dd5
2 changed files with 1 additions and 4 deletions

View File

@ -913,10 +913,6 @@ void GuiApplication::createView(QString const & geometry_arg, bool autoShow)
id++; id++;
GuiView * view = new GuiView(id); GuiView * view = new GuiView(id);
// copy the icon size from old view
if (current_view_)
view->setIconSize(current_view_->iconSize());
// register view // register view
d->views_[id] = view; d->views_[id] = view;

View File

@ -668,6 +668,7 @@ GuiToolbar::GuiToolbar(ToolbarInfo const & tbinfo, GuiView & owner)
allowauto_(false), owner_(owner), layout_(0), command_buffer_(0), allowauto_(false), owner_(owner), layout_(0), command_buffer_(0),
tbinfo_(tbinfo), filled_(false) tbinfo_(tbinfo), filled_(false)
{ {
setIconSize(owner.iconSize());
connect(&owner, SIGNAL(iconSizeChanged(QSize)), this, connect(&owner, SIGNAL(iconSizeChanged(QSize)), this,
SLOT(setIconSize(QSize))); SLOT(setIconSize(QSize)));