From d72f7da1ef0f42e1b042a671791ee6c56c7b36d5 Mon Sep 17 00:00:00 2001 From: birkeh Date: Thu, 14 Mar 2019 23:03:37 +0100 Subject: [PATCH] removed obsolate calls --- cmainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmainwindow.cpp b/cmainwindow.cpp index 5a760dd..2258b37 100644 --- a/cmainwindow.cpp +++ b/cmainwindow.cpp @@ -351,7 +351,8 @@ void cMainWindow::cleanFolderTree(const QString& folder) if(m_pictureList.hasPath(lpItem->data(Qt::UserRole+1).toString())) break; - if(indexSource.child(0, 0).isValid()) +// if(indexSource.child(0, 0).isValid()) + if(m_lpFolderViewModel->index(0, 0, indexSource).isValid()) break; }