aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LDesktopUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/libLumina/LDesktopUtils.cpp')
-rw-r--r--src-qt5/core/libLumina/LDesktopUtils.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src-qt5/core/libLumina/LDesktopUtils.cpp b/src-qt5/core/libLumina/LDesktopUtils.cpp
index fb13a2a3..c65f6faf 100644
--- a/src-qt5/core/libLumina/LDesktopUtils.cpp
+++ b/src-qt5/core/libLumina/LDesktopUtils.cpp
@@ -483,10 +483,7 @@ 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);
- char *tmp;
- int tmpN = 0;
- QApplication A(tmpN, &tmp);
- QList<QScreen*> screens = A.screens();
+ QList<QScreen*> screens = QApplication::screens();
for(int i=0; i<DS.length(); i++){
if(!DS[i].startsWith("[")){ continue; }
if(DS[i].startsWith("[desktop-")){
bgstack15