Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
polkit-qt-1
ck-avoid-crash.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ck-avoid-crash.diff of Package polkit-qt-1
--- core/polkitqt1-authority.cpp +++ core/polkitqt1-authority.cpp @@ -219,12 +219,14 @@ // then we need to extract all seats from ConsoleKit QDBusMessage msg = QDBusMessage::createMethodCall(consoleKitService, consoleKitManagerPath, consoleKitManagerInterface, "GetSeats"); msg = QDBusConnection::systemBus().call(msg); - // this method returns a list with present seats - QList<QString> seats; - qVariantValue<QDBusArgument> (msg.arguments()[0]) >> seats; - // it can be multiple seats present so connect all their signals - Q_FOREACH(const QString &seat, seats) { - seatSignalsConnect(seat); + if (!msg.arguments().isEmpty()) { + // this method returns a list with present seats + QList<QString> seats; + qVariantValue<QDBusArgument> (msg.arguments()[0]) >> seats; + // it can be multiple seats present so connect all their signals + Q_FOREACH(const QString &seat, seats) { + seatSignalsConnect(seat); + } } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor