X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d8669c68e40a6571dfcbdf38e3281a4aeb8c2be6..ba6f7b0232b030b2b3eda4fc126cbc3aba05e5d2:/src/dolphiniconsview.cpp 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(model()); item = dirModel->itemForIndex(index); }