Skip to content

Commit

Permalink
Merge pull request elfmz#2583 from akruphi/qview_crash_fix2581
Browse files Browse the repository at this point in the history
Fix qview crash on broken symlinks
  • Loading branch information
elfmz authored Dec 22, 2024
2 parents 4a251fb + 7001caa commit e087a3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions far2l/src/viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ void Viewer::KeepInitParameters()
InitHex = VM.Hex;
}

void Viewer::Show()
{
if (!OpenFailed)
ScreenObject::Show();
}

int Viewer::OpenFile(FileHolderPtr NewFileHolder, int warning)
{
VM.CodePage = DefCodePage;
Expand Down
1 change: 1 addition & 0 deletions far2l/src/viewer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ class Viewer : public ScreenObject
int OpenFile(FileHolderPtr NewFileHolder, int warning);
void SetViewKeyBar(KeyBar *ViewKeyBar);

virtual void Show();
virtual int ProcessKey(FarKey Key);
virtual int ProcessMouse(MOUSE_EVENT_RECORD *MouseEvent);
virtual int64_t VMProcess(MacroOpcode OpCode, void *vParam = nullptr, int64_t iParam = 0);
Expand Down

0 comments on commit e087a3c

Please sign in to comment.