click to inactive file list won't change selection
[case] / src / filelist.h
index dd6fda9..ec51cbc 100644 (file)
@@ -40,11 +40,14 @@ public slots:
     bool changePath(QString path);
     bool goUp();
     void toggleShowHiddenFiles();
+    void preventNextSelection();
 
 protected:
     QFileSystemModel *fileSystemModel;
+    mutable int dontSelect;
 
     void mousePressEvent(QMouseEvent *event);
+    virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex &index, const QEvent *event = 0) const;
 
 private slots:
     void activateItem(QModelIndex index);