Bug 395737 - If the user presses Shift+F3 and writes the name of an inexistent file: Krusader opens a viewer window
Summary: If the user presses Shift+F3 and writes the name of an inexistent file: Krusa...
Status: RESOLVED FIXED
Alias: None
Product: krusader
Classification: Applications
Component: krviewer (show other bugs)
Version: Git
Platform: Other Linux
: LO minor
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords: reproducible, triaged
Depends on:
Blocks:
 
Reported: 2018-06-22 10:17 UTC by Toni Asensi Esteve
Modified: 2020-02-15 17:01 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toni Asensi Esteve 2018-06-22 10:17:16 UTC
If the user presses Shift+F3 and writes the name of an inexistent file: Krusader opens a viewer window, though there's nothing to see, of course.

Maybe Krusader should show an error message saying 'The file "<name>" does not exist.'?
Comment 1 Toni Asensi Esteve 2020-02-08 19:18:33 UTC
This bug was confirmed.

There's a proposed solution inhttps://phabricator.kde.org/D27258
Comment 2 Toni Asensi Esteve 2020-02-15 17:01:51 UTC
Git commit 419ac6ec839414bbae52849af536bc8ba1da83e4 by Toni Asensi Esteve.
Committed on 15/02/2020 at 16:56.
Pushed by asensi into branch 'master'.

Manage what happens when a PanelViewerBase (e.g. using Shift+F3) is being used to open a local file that does not exist

This solves some problems. For example, if users press Shift+F3 and paste the path of a local inexistent file: Krusader opens a viewer window as it that file existed and was empty (but that file is not empty, it really does not exist). Note: That problem doesn't happen in the case of remote inexistent files.

FIXED: [ 395737 ] If the user presses Shift+F3 and writes the name of an inexistent file: Krusader opens a viewer window

M  +7    -2    krusader/KViewer/panelviewer.cpp

https://commits.kde.org/krusader/419ac6ec839414bbae52849af536bc8ba1da83e4