Avoided costly roundtrip through strings.

This commit is contained in:
Guillaume Melquiond 2010-06-01 06:43:20 +00:00
parent 70fd2e599e
commit e275bc34a5

View File

@ -1072,7 +1072,7 @@ static DBusConnection *get_dbus_connection()
if (!initted)
{
initted = true;
if (utils::string_bool(preferences::get("disable_notifications"))) {
if (preferences::get("disable_notifications", false)) {
return NULL;
}
if (getenv("KDE_SESSION_VERSION")) {