2 ms·
Why was this not done with RAII - https://invent.kde.org/frameworks/kauth/-/commit/fc70fb0161c1b9144d26389434d34dd135cd3f4a https://invent.kde.org/frameworks/ka
by malkia 3y ago
Why was this not done with RAII - https://invent.kde.org/frameworks/kauth/-/commit/fc70fb0161c1b9144d26389434d34dd135cd3f4a https://invent.kde.org/frameworks/kauth/-/commit/fc70fb0161c... - if there was an exception between here
QVariantMap args;
QDataStream s(&arguments, QIODevice::ReadOnly);
s >> args;
Then it won't restore the global. Also ... global ugh