radioapp/radioapplication/src/testwindow_win32.cpp
changeset 33 11b6825f0862
parent 32 189d20c34778
child 37 451b2e1545b2
--- a/radioapp/radioapplication/src/testwindow_win32.cpp	Wed Jun 23 18:12:57 2010 +0300
+++ b/radioapp/radioapplication/src/testwindow_win32.cpp	Tue Jul 06 14:16:27 2010 +0300
@@ -268,6 +268,7 @@
  */
 void Win32Window::changeTheme( const QString& theme )
 {
+    LOG_FORMAT( "Changing to theme %s", GETSTRING( theme ) );
     QLocalSocket socket;
     socket.connectToServer( "hbthemeserver" );
     if ( socket.waitForConnected( 3000 ) ) {
@@ -342,7 +343,11 @@
         rootDirs << envDir;
     }
 
-    rootDirs << HB_RESOURCES_DIR;
+    QString resourcesDir = HB_RESOURCES_DIR;
+    if ( resourcesDir.isEmpty() ) {
+        resourcesDir = "/hb_dev/src/hbcore/resources";
+    }
+    rootDirs << resourcesDir;
 
     return rootDirs;
 }