Git commit cd946735793ad837d5c71145c8cbe0faed158937 by Aleix Pol.
Committed on 02/01/2015 at 15:41.
Pushed by apol into branch 'master'.

Check for errors when the GetConfigOperation returns

Maybe there lies the answer to the indomitable startup black screen.

CCMAIL: plasma-devel@kde.org

M  +3    -0    shell/shellcorona.cpp

http://commits.kde.org/plasma-workspace/cd946735793ad837d5c71145c8cbe0faed158937

diff --git a/shell/shellcorona.cpp b/shell/shellcorona.cpp
index c26efe5..cf50e5d 100644
--- a/shell/shellcorona.cpp
+++ b/shell/shellcorona.cpp
@@ -260,6 +260,9 @@ void ShellCorona::setShell(const QString &shell)
     }
     connect(new 
KScreen::GetConfigOperation(KScreen::GetConfigOperation::NoEDID), 
&KScreen::GetConfigOperation::finished,
                 this, [=](KScreen::ConfigOperation *op) {
+                    if (op->hasError()) {
+                        qWarning() << "Error found while setting up 
ShellCorona's KScreen: " << op->errorString();
+                    }
                     m_screenConfiguration = 
qobject_cast<KScreen::GetConfigOperation*>(op)->config();
                     load();
                 });
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to