From 1d27156cdc18e2600fc6e30099ca20452045fabb Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 7 Dec 2011 23:46:35 +0100 Subject: Prevent unwanted item animations (#2) Use a cleaner approach to prevent item animations when showing a hidden tab the first time. For Dolphin > 2.0 the tab-code should be refactored from DolphinMainWindow and encapsulated into an own module (but well, this is on my TODO-list since KDE SC 4.4...) --- src/dolphinmainwindow.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dolphinmainwindow.h') diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h index fd9e10329..998b6fc25 100644 --- a/src/dolphinmainwindow.h +++ b/src/dolphinmainwindow.h @@ -565,8 +565,9 @@ private: // Members for the tab-handling: struct ViewTab { - ViewTab() : isPrimaryViewActive(true), primaryView(0), secondaryView(0), splitter(0) {} + ViewTab() : isPrimaryViewActive(true), wasActive(false), primaryView(0), secondaryView(0), splitter(0) {} bool isPrimaryViewActive; + bool wasActive; DolphinViewContainer* primaryView; DolphinViewContainer* secondaryView; QSplitter* splitter; -- cgit v1.3