[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kscreen] console: Only show EDID when it is valid
From:       Àlex_Fiestas <afiestas () kde ! org>
Date:       2013-04-30 18:25:12
Message-ID: 20130430182512.DEE87A603F () git ! kde ! org
[Download RAW message or body]

Git commit df5e48ba78a2d14a27e46c0aff82099a514253a5 by Àlex Fiestas.
Committed on 30/04/2013 at 20:12.
Pushed by afiestas into branch 'master'.

Only show EDID when it is valid

M  +1    -1    console/console.cpp

http://commits.kde.org/kscreen/df5e48ba78a2d14a27e46c0aff82099a514253a5

diff --git a/console/console.cpp b/console/console.cpp
index a7bb315..c4f4088 100644
--- a/console/console.cpp
+++ b/console/console.cpp
@@ -96,7 +96,7 @@ void Console::printConfig()
 
         Edid* edid = output->edid();
         qDebug() << "EDID Info: ";
-        if (edid != 0) {
+        if (edid && edid->isValid()) {
             qDebug() << "\tDevice ID: " << edid->deviceId();
             qDebug() << "\tName: " << edid->name();
             qDebug() << "\tVendor: " << edid->vendor();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic