| Summary: | kdevelop 4 doesn't remember remote file URIs | ||
|---|---|---|---|
| Product: | [Developer tools] kdevplatform | Reporter: | Maciej Mrozowski <reavertm> |
| Component: | project | Assignee: | kdevelop-bugs-null |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.0.0 | ||
| Target Milestone: | 1.0.1 | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Maciej Mrozowski
2010-05-18 22:28:51 UTC
confirmed by niko, reassigning to proper component commit 2dcbfa0c9de95499902a2313d70ec4422b020770 Author: Andreas Pakulat <apaku@gmx.de> Date: Wed May 19 09:36:47 2010 +0200 Use the complete url of the active document. Don't just use the directory, use the complete url of the active document and go up one step. This fixes the default-dir when working with remote url. BUG:238094 diff --git a/shell/documentcontroller.cpp b/shell/documentcontroller.cpp index 2288972..6d9344f 100644 --- a/shell/documentcontroller.cpp +++ b/shell/documentcontroller.cpp @@ -176,7 +176,7 @@ struct DocumentControllerPrivate { KUrl dir; if( controller->activeDocument() ) { - dir = KUrl( controller->activeDocument()->url().directory() ); + dir = controller->activeDocument()->url().upUrl(); }else { dir = KGlobal::config()->group("Open File").readEntry( "Last Open File Directory", Core::self()->projectController()->projectsBaseDirectory() ); Just FYI, reporter of bug 245540 apparently disagree with this bug resolution. I suggest to reopen this one and mark the other as duplicate. |