libede:FileSystemBox: fixed right click menu crash. used proper guiApp initialization...
authorRejean Loyer <rejean.loyer@gmail.com>
Thu, 15 Sep 2011 01:38:48 +0000 (21:38 -0400)
committerRejean Loyer <rejean.loyer@gmail.com>
Thu, 15 Sep 2011 01:38:48 +0000 (21:38 -0400)
libede/src/FileSystemBox.ec

index 2a397ae..feebf15 100644 (file)
@@ -8,7 +8,7 @@ static char * rootName = "File System";
 #endif
 
 private:
-define guiApp = ((GuiApplication)__thisModule);  // how to do this in a dll?
+define guiApp = (GuiApplication)((__thisModule).application);
 define selectionColor = guiApp.currentSkin.selectionColor; //Color { 10, 36, 106 };
 
 static char * fileIconNames[] = 
@@ -1930,7 +1930,7 @@ public:
       //surface.WriteTextDots(alignment, x + textOffset, y + 2, width - textOffset, name, strlen(name));
       surface.WriteTextDots(alignment, xStart, y + 2, width, label, len);
 
-      //if(!guiApp.textMode) -- how to do this in a dll?
+      if(!guiApp.textMode)
       {
          if(displayFlags.current)
          {