diff options
| author | Tomas Bzatek <tbzatek@redhat.com> | 2010-02-17 18:53:10 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@redhat.com> | 2010-02-17 18:53:10 +0100 |
| commit | 2ef485ec4f51c9fe7fb9fa99511db3960812cfd0 (patch) | |
| tree | 802ff1ce8c1cfbb7f42a3c46873c6f0b948b0835 /USearch.pas | |
| parent | d338f1f0c1a72665396d95bfe303ed408a3f10b9 (diff) | |
| download | tuxcmd-2ef485ec4f51c9fe7fb9fa99511db3960812cfd0.tar.xz | |
Move viewer windows to separate window groups
Each viewer window now belongs to its own window group so
they can't influence each other. Works nicely when opened
from Search dialog too. Finally, no need to make separate
viewer app.
Diffstat (limited to 'USearch.pas')
| -rw-r--r-- | USearch.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/USearch.pas b/USearch.pas index 732bcdb..3ae35f9 100644 --- a/USearch.pas +++ b/USearch.pas @@ -601,7 +601,7 @@ begin AEngine := TLocalTreeEngine.Create; b := True; end; - if b then FMain.EditViewFileInternal(Self, string(PDataItem(FileList.Selected.AsPointer(0))^.FDisplayName), AEngine, True, False) + if b then FMain.EditViewFileInternal(string(PDataItem(FileList.Selected.AsPointer(0))^.FDisplayName), AEngine, True, False) else Application.MessageBox(Format(LANGCannotLoadFile, [string(PDataItem(FileList.Selected.AsPointer(0))^.FDisplayName)]), [mbOK], mbError, mbNone, mbOK); if AEngine is TVFSEngine then (AEngine as TVFSEngine).VFSClose(nil); |
