aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-09-21 16:04:22 -0400
committerKen Moore <ken@ixsystems.com>2017-09-21 16:04:22 -0400
commit836dd026ae707965df8faf556debfde7a007b5d1 (patch)
tree113c1351aa7e44cd362e0d605fd2c248823516b6
parentOops - need to make sure that status function does not access any global QApp... (diff)
downloadlumina-836dd026ae707965df8faf556debfde7a007b5d1.tar.gz
lumina-836dd026ae707965df8faf556debfde7a007b5d1.tar.bz2
lumina-836dd026ae707965df8faf556debfde7a007b5d1.zip
Quick fix to ensure the status checkUserFiles function truly is static
-rw-r--r--src-qt5/core/libLumina/LDesktopUtils.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LDesktopUtils.cpp b/src-qt5/core/libLumina/LDesktopUtils.cpp
index 6c0543c0..a5c1bd77 100644
--- a/src-qt5/core/libLumina/LDesktopUtils.cpp
+++ b/src-qt5/core/libLumina/LDesktopUtils.cpp
@@ -481,7 +481,10 @@ bool LDesktopUtils::checkUserFiles(QString lastversion, QString currentversion){
//Convert from the old desktop numbering system to the new one (change occured with 1.0.1)
if(oldversion<=1000001){
QStringList DS = LUtils::readFile(dset);
- QList<QScreen*> screens = QApplication::screens();
+ char *tmp;
+ int tmpN = 0;
+ QApplication A(tmpN, &tmp);
+ QList<QScreen*> screens = A.screens();
for(int i=0; i<DS.length(); i++){
if(!DS[i].startsWith("[")){ continue; }
if(DS[i].startsWith("[desktop-")){
bgstack15