diff options
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index 98d1a05b1..eb3dde47f 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -58,6 +58,10 @@ void DolphinIconsView::contextMenuEvent(QContextMenuEvent* event) const QModelIndex index = indexAt(event->pos()); if (index.isValid()) { + // TODO: assuming that model() returns an instance of the class + // KDirModel is dangerous, especially in combination with a proxy model. + // As the current test implementation of proxy model does not work, this + // will be cleaned up later. KDirModel* dirModel = static_cast<KDirModel*>(model()); item = dirModel->itemForIndex(index); } |
