Changeset 581:fd80f7940877 in qutecom-2.2


Ignore:
Timestamp:
Mar 11, 2010 10:21:54 AM (3 years ago)
Author:
laurent@…
Branch:
default
Message:

test theme dir before load

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wengophone/src/presentation/qt/chat/QtChatTheme.cpp

    r579 r581  
    8787 
    8888void QtChatTheme::load(const QString & themeDir) { 
    89         _currentThemePath = themeBaseDir() + themeDir + "/"; 
     89        QStringList themeList = getThemeList(); 
     90         
     91        if(themeList.contains(themeDir)) 
     92                _currentThemePath = themeBaseDir() + themeDir + "/"; 
     93        else if(themeList.count()) 
     94                _currentThemePath = themeBaseDir() + themeList.at(0) + "/"; 
    9095 
    9196        _incomingContent = loadFile(_currentThemePath + "Contents/Resources/Incoming/Content.html"); 
Note: See TracChangeset for help on using the changeset viewer.