GTK: remove tab label side-effect from refreshView'

This would cause bugs when newtab on middle-click is implemented,
since creating a new tab creates also a new view, but doesn't
change the current tab to that view. refreshView' would then
update that view with the information from the wrong tab.
This commit is contained in:
2016-06-01 22:00:37 +02:00
parent 7fef11ecd2
commit 01c241a01e
3 changed files with 24 additions and 15 deletions

View File

@@ -345,12 +345,6 @@ refreshView' mygui myview item@Dir{} = do
constructView mygui myview
-- set notebook tab label
page <- notebookGetCurrentPage (notebook mygui)
child <- fromJust <$> notebookGetNthPage (notebook mygui) page
notebookSetTabLabelText (notebook mygui) child
(maybe (P.fromAbs $ path item) P.fromRel $ P.basename . path $ item)
-- reselect selected items
-- TODO: not implemented for icon view yet
case view' of