Explorar o código

FIX: A non-Latin folder name is not shown correctly in the title bar (fixes #354)

Alexander Koblov %!s(int64=3) %!d(string=hai) anos
pai
achega
5f0ae995a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/fmain.pas

+ 1 - 1
src/fmain.pas

@@ -1171,7 +1171,7 @@ begin
   LoadTabs;
 
   // Must be after LoadTabs
-  TDriveWatcher.Initialize(GetWindowHandle(Self));
+  TDriveWatcher.Initialize(GetWindowHandle(Application.MainForm));
   TDriveWatcher.AddObserver(@OnDriveWatcherEvent);
 
 {$IF (DEFINED(LCLQT) or DEFINED(LCLQT5)) and not DEFINED(MSWINDOWS)}