GTK: don't allow new-tab middle-click on non-directories

This commit is contained in:
Julian Ospald 2016-06-01 22:26:32 +02:00
parent 9549b40745
commit d14caf5269
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

View File

@ -349,8 +349,9 @@ closeTab mygui myview = do
newTabHere :: MyGUI -> Item -> IO ()
newTabHere mygui item =
newTabHere mygui item@(DirOrSym _) =
void $ newTab mygui createTreeView (path item)
newTabHere _ _ = return ()