From 810a6cced9efcfd156d9156780e8f7e65a850cc2 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 22 Aug 2017 14:26:49 -0400 Subject: Fix a list which was not getting populated properly. --- src-qt5/core-utils/lumina-xconfig/ScreenSettings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src-qt5/core-utils') diff --git a/src-qt5/core-utils/lumina-xconfig/ScreenSettings.cpp b/src-qt5/core-utils/lumina-xconfig/ScreenSettings.cpp index f962f7d7..3c0edc76 100644 --- a/src-qt5/core-utils/lumina-xconfig/ScreenSettings.cpp +++ b/src-qt5/core-utils/lumina-xconfig/ScreenSettings.cpp @@ -91,6 +91,7 @@ QList RRSettings::PreviousSettings(QString profile){ QStringList avail; for(int i=0; i RRSettings::PreviousSettings(QString profile){ QStringList filter = avail.filter(priority[i]); if(!filter.isEmpty()){ filter.sort(); primary = filter.first(); } } - if(primary.isEmpty()){ primary = avail.first(); } + if(primary.isEmpty() && !avail.isEmpty()){ primary = avail.first(); } } //Ensure only one monitor is primary, and reset a few flags for(int i=0; i