diff options
-rw-r--r-- | fileview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fileview.cpp b/fileview.cpp index 8f50330..ad0bdf6 100644 --- a/fileview.cpp +++ b/fileview.cpp @@ -151,7 +151,7 @@ bool FileView::event(QEvent *e){ QPoint hotSpot(hEvent->pos().x(), hEvent->pos().y() + mCursorOffset); QModelIndex curIdx = indexAt(hotSpot); HoverFileType ft = None; - QFileInfo curIdxInfo(curIdx.data(QFileSystemModel::FilePathRole).toString()); + QFileInfo curIdxInfo(curIdx.data(SmDirModel::FullPathRole).toString()); if((e->type() == QEvent::HoverEnter) || (e->type() == QEvent::HoverMove)){ if(!curIdx.isValid() || (!curIdx.column() == 0)){ return exitHover(); |