Переглянути джерело

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

Alexander Koblov 3 роки тому
батько
коміт
5f0ae995a5
1 змінених файлів з 1 додано та 1 видалено
  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)}