From 9092371858356efde3e2d6d002f692308127389c Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 23 Oct 2010 09:20:18 +0200 Subject: Fixed crash when remembering selected tab, improve performance Strange things happen. As stated in commit 19674f6, SheMov crashed when setting the archive as current tab and then changing to filesystem view. This can be resolved by first showing the MainWindow and then applying the display changes. I guess it's an qt internal thing. Also vastly improved performance when hovering by only entering the hover code path when we actually have a HoverEvent. Before CPU usage spiked at 100% even if SheMov was idle. --- fileview.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fileview.h') diff --git a/fileview.h b/fileview.h index 6e6e303..93fa045 100644 --- a/fileview.h +++ b/fileview.h @@ -35,6 +35,7 @@ class FileView : public QTreeView { void markFiles(); void unmarkFiles(); void createFolder(); + void readConfig(); private slots: void doMark(); @@ -52,6 +53,7 @@ class FileView : public QTreeView { QAction *mDeleteA; HoverWindow *mHoverWin; QModelIndex mCurHover; + bool mHover; }; #endif -- cgit v1.2.3-70-g09d2