------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=73571 matt.rogers@kdemail.net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From matt.rogers@kdemail.net 2004-01-31 19:07 ------- Subject: KDE_3_2_BRANCH: kdenetwork/kopete/libkopete/private CVS commit by mattr: Add a check to make sure that the stylesheet exists before loading it. Defaults back to the Kopete style is none is found. This could also be useful if you have a custom style and then remove it. CCMAIL: 73571-done@bugs.kde.org M +3 -0 kopeteprefs.cpp 1.25.2.1 --- kdenetwork/kopete/libkopete/private/kopeteprefs.cpp #1.25:1.25.2.1 @@ -90,4 +90,7 @@ void KopetePrefs::load() mShowTray = config->readBoolEntry( "Show Systemtray", true); mStyleSheet = config->readEntry("Stylesheet", locate("appdata",QString::fromLatin1("styles/Kopete.xsl") ) ); + if ( !QFile::exists( mStyleSheet ) ) + mStyleSheet = locate( "appdata", QString::fromLatin1("styles/Kopete.xsl") ); + mStyleContents = fileContents( mStyleSheet ); _______________________________________________ Kopete-devel mailing list Kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel