Bug 374536 - [Save-as dialog] Path proposed by dialog is the last path used by save-as ; not the actual path.
Summary: [Save-as dialog] Path proposed by dialog is the last path used by save-as ; n...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 3.1.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-04 12:43 UTC by David REVOY
Modified: 2017-01-24 15:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
(Video example with the steps I've followed to reproduce the issue) (939.06 KB, video/mp4)
2017-01-05 08:41 UTC, mvowada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David REVOY 2017-01-04 12:43:31 UTC
Hi,
This is a bug easy to reproduce after Krita3.1.1appimage and krita/3.1git ; but not affecting previous 3.0.1appimage to 3.0.94appimage. 

To reproduce:
- Open an artwork ( eg. /home/deevad/carrot.kra )
- Save-as ( Ctrl+Shift+S ) and pick a directory. ( eg. /home/deevad/folder-AAA/Carrot.kra )
( do anything, closing Krita, working on something else, etc...)
- Open another artwork ( eg. /home/deevad/some/far/away/folder-ZZZ/page1.kra )
- Perform a Save-as ( Ctrl+Shift+S )

Result:
The directory proposed by the dialog will be the previous one. (eg. /home/deevad/folder-AAA/ ) instead of proposing the path of the active document ( /home/deevad/some/far/away/folder-ZZZ/ ).

( Note: It's a regression suffisently annoying to make me stick with 3.0.1appimage~alpha1, because I'm converting and saving temporary version a lot with Save-as. But it's not a drama-bug too for other user as far as I can see, so I flag it as 'normal' :D )
Comment 1 mvowada 2017-01-05 08:41:39 UTC
Created attachment 103208 [details]
(Video example with the steps I've followed to reproduce the issue)

(In reply to David REVOY from comment #0)
> Hi,
> This is a bug easy to reproduce after Krita3.1.1appimage and krita/3.1git ;
> but not affecting previous 3.0.1appimage to 3.0.94appimage. 
> 
> To reproduce:
> - Open an artwork ( eg. /home/deevad/carrot.kra )
> - Save-as ( Ctrl+Shift+S ) and pick a directory. ( eg.
> /home/deevad/folder-AAA/Carrot.kra )
> ( do anything, closing Krita, working on something else, etc...)
> - Open another artwork ( eg. /home/deevad/some/far/away/folder-ZZZ/page1.kra
> )
> - Perform a Save-as ( Ctrl+Shift+S )
> 
> Result:
> The directory proposed by the dialog will be the previous one. (eg.
> /home/deevad/folder-AAA/ ) instead of proposing the path of the active
> document ( /home/deevad/some/far/away/folder-ZZZ/ ).
> 
> ( Note: It's a regression suffisently annoying to make me stick with
> 3.0.1appimage~alpha1, because I'm converting and saving temporary version a
> lot with Save-as. But it's not a drama-bug too for other user as far as I
> can see, so I flag it as 'normal' :D )

Hi David, I'm sorry, I'm not able to reproduce the issue here. The directory proposed by the dialog is actually "ZZZ", in my case. Please, see the video for the steps I've followed, thanks. Checking on Ubuntu 14.04 with "krita-3.1.1-x86_64.appimage" (link: http://download.kde.org/stable/krita/3.1.1/krita-3.1.1-x86_64.appimage).
Comment 2 Raghavendra kamath 2017-01-05 10:44:47 UTC
I can reproduce this bug in Krita built from git master(git acabf22) .
Arch linux. Also I have enabled native file dialog in the configure Krita > general > miscellaneous tab > enable native file dialog

For me it always opens up last saved or exported location and not the path where the file is . I understand the need to remember saved location for export as it comes in handy when you want to export multiple files to a single location. but I think Krita should forget about this location once I restart.
Comment 3 David REVOY 2017-01-05 11:04:40 UTC
Here is a video of reproducing the bug on my machine ( Manjaro+XFCE, filemanager is PCManFM 1.2.4 ) , 2min, 1080p: https://share.kde.org/index.php/s/KjNqz8Ten8ub2Mg 

@mvowada:Thank you for testing. It's surprising to have different results with the appimage.

@Raghavendra kamath: Thank you for confirming ( I'm switching to 'CONFIRMED' ) and for the information about "native file dialog" in the configure Krita > general > miscellaneous tab > enable native file dialog : I didn't know this one. I guess I'm using the default here (the sad-and-not-useful-dialog-feeling-like-computing-on-windows-3.1-because-no-thumbnails :p ).
Comment 4 Halla Rempt 2017-01-24 15:39:56 UTC
Git commit 0025b74d98d3074bf9bbee0bfaa3ed3ff9d19de5 by Boudewijn Rempt.
Committed on 24/01/2017 at 15:39.
Pushed by rempt into branch 'master'.

The default folder for save as is taken from the path of the image.

M  +1    -1    libs/ui/KisMainWindow.cpp
M  +1    -1    libs/widgetutils/KoFileDialog.cpp

https://commits.kde.org/krita/0025b74d98d3074bf9bbee0bfaa3ed3ff9d19de5
Comment 5 Halla Rempt 2017-01-24 15:40:57 UTC
Git commit 69c830f77913ec8bec154b53eeca2bf3de422bb9 by Boudewijn Rempt.
Committed on 24/01/2017 at 15:40.
Pushed by rempt into branch 'krita/3.1'.

The default folder for save as is taken from the path of the image.

M  +1    -1    libs/ui/KisMainWindow.cpp
M  +1    -0    libs/widgetutils/KoFileDialog.cpp

https://commits.kde.org/krita/69c830f77913ec8bec154b53eeca2bf3de422bb9