Skip to content

Commit

Permalink
Merge pull request edbee#18 from vadi2/fix-theme-loading
Browse files Browse the repository at this point in the history
Fix theme loading
  • Loading branch information
gamecreature authored May 31, 2017
2 parents 67385cb + 93341e2 commit ff3bafd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edbee-lib/edbee/views/texttheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ TextTheme* TextThemeManager::readThemeFile( const QString& fileName, const QStri
/// @return the theme with the given name
TextTheme* TextThemeManager::theme(const QString& name)
{
if( name.isEmpty() || themePath_.isEmpty() ) { return 0; }
if( name.isEmpty() ) { return 0; }
TextTheme* theme=themeMap_.value(name);
if( !theme ) {
if( !theme && !themePath_.isEmpty()) {
QString filename = QString("%1/%2.tmTheme").arg(themePath_).arg(name);
TextTheme* theme = readThemeFile( filename );
if( !theme ) {
Expand Down

0 comments on commit ff3bafd

Please sign in to comment.