[Qttabbar-Commit] SF.net SVN: qttabbar:[422] trunk/QTTabBar
Status: Beta
Brought to you by:
masamunexgp
From: <mas...@us...> - 2012-02-25 17:23:43
|
Revision: 422 http://qttabbar.svn.sourceforge.net/qttabbar/?rev=422&view=rev Author: masamunexgp Date: 2012-02-25 17:23:37 +0000 (Sat, 25 Feb 2012) Log Message: ----------- Fixed tab images when merging/cloning. Modified Paths: -------------- trunk/QTTabBar/QTTabBarClass.cs trunk/QTTabBar/QTabItem.cs Modified: trunk/QTTabBar/QTTabBarClass.cs =================================================================== --- trunk/QTTabBar/QTTabBarClass.cs 2012-02-25 06:53:51 UTC (rev 421) +++ trunk/QTTabBar/QTTabBarClass.cs 2012-02-25 17:23:37 UTC (rev 422) @@ -3726,6 +3726,8 @@ main.tabControl1.SetRedraw(false); foreach(QTabItem tab in tabs) { tab.ResetOwner(main.tabControl1); + tab.ImageKey = tab.ImageKey; // this is so dumb, but unfortunately necessary + // todo: make it less dumb. } QTabItem.CheckSubTexts(main.tabControl1); TryCallButtonBar(bbar => bbar.RefreshButtons()); Modified: trunk/QTTabBar/QTabItem.cs =================================================================== --- trunk/QTTabBar/QTabItem.cs 2012-02-25 06:53:51 UTC (rev 421) +++ trunk/QTTabBar/QTabItem.cs 2012-02-25 17:23:37 UTC (rev 422) @@ -192,6 +192,7 @@ } public QTabItem(string title, string path, QTabControl parent) { + Owner = parent; Comment = string.Empty; stckHistoryForward = new Stack<LogData>(); stckHistoryBackward = new Stack<LogData>(); @@ -201,7 +202,6 @@ CurrentPath = path; ToolTipText = string.Empty; titleText = title; - Owner = parent; if(font == null) { font = new Font(parent.Font, FontStyle.Bold); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |