make this behave consistently with THEME:GetPath when given a blank

button name
This commit is contained in:
Glenn Maynard
2005-10-05 06:05:53 +00:00
parent 73fffe0bde
commit f723499700
+3 -1
View File
@@ -206,7 +206,9 @@ try_again:
CString sPath; // fill this in below
FOREACHD_CONST( CString, data.vsDirSearchOrder, iter )
{
if( *iter == GLOBAL_BASE_NOTESKIN_DIR )
if( sButtonName.empty() )
sPath = GetPathFromDirAndFile( *iter, sElement );
else if( *iter == GLOBAL_BASE_NOTESKIN_DIR )
sPath = GetPathFromDirAndFile( *iter, "Fallback "+sElement );
else
sPath = GetPathFromDirAndFile( *iter, sButtonName+" "+sElement );