From ff6c6a59c8f8aea4a7c0e2d5647f66d51a4c7a58 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 31 Jul 2017 12:50:09 -0400 Subject: Fix up the grav screensaver a bit so it does not crash on close any more. --- src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp') diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp index 257d2f23..06f16ad1 100644 --- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp +++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp @@ -275,7 +275,7 @@ void BrowserWidget::itemDataAvailable(QIcon ico, LFileInfo *info){ int num = 0; if(listWidget!=0){ //LIST WIDGET - name and icon only - if(info->isDesktopFile()){ + if(info->isDesktopFile() && info.XDG()->isValid()){ QList items = listWidget->findItems(info->XDG()->name, Qt::MatchExactly); //Could be multiple items with the same text in this case - check paths as well bool found = false; -- cgit From 30171e9d5281c83c2fb84cc8acb0dfef38262e8d Mon Sep 17 00:00:00 2001 From: q5sys Date: Tue, 1 Aug 2017 16:39:37 -0400 Subject: fix pointer --- src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp') diff --git a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp index 06f16ad1..d5f219bb 100644 --- a/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp +++ b/src-qt5/desktop-utils/lumina-fm/BrowserWidget.cpp @@ -275,7 +275,7 @@ void BrowserWidget::itemDataAvailable(QIcon ico, LFileInfo *info){ int num = 0; if(listWidget!=0){ //LIST WIDGET - name and icon only - if(info->isDesktopFile() && info.XDG()->isValid()){ + if(info->isDesktopFile() && info->XDG()->isValid()){ QList items = listWidget->findItems(info->XDG()->name, Qt::MatchExactly); //Could be multiple items with the same text in this case - check paths as well bool found = false; -- cgit