This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Fixing Marble "device not found" warnings spam

Tags: None
(comma "," separated)
adabrowski
Registered Member
Posts
14
Karma
0
Marble does produce a lot of "device not found" warning messages while running.

I've found out why - if MarbleDebug::isEnabled() is false, a NullDevice is created in the MarbleDebug.cpp code, but not opened - thus Qt produces qWarning every time mDebug() is called in Marble code. It happens with Qt 5.2.1 and Qt 5.3 beta (haven't tested any other version).

It's an annoying bug, but pretty easy to fix. Just open the NullDevice, maybe when constructing it:

NullDevice() { open(QIODevice::WriteOnly); }

the above line fixes the issue. I don't have an idea if this is a proper patch, but would love to see this fixed.
User avatar
Earthwings
KDE Developer
Posts
172
Karma
1
OS


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]