OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2719f80
)
Open Window: Make the parent folder of that path the default path for the Open dialog...
author
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sat, 16 May 2020 13:49:13 +0000
(22:49 +0900)
committer
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sat, 16 May 2020 13:49:13 +0000
(22:49 +0900)
Src/OpenView.cpp
patch
|
blob
|
history
diff --git
a/Src/OpenView.cpp
b/Src/OpenView.cpp
index
9d350d9
..
69f75fd
100644
(file)
--- a/
Src/OpenView.cpp
+++ b/
Src/OpenView.cpp
@@
-496,7
+496,7
@@
void COpenView::OnButton(int index)
sfolder = paths::GetPathOnly(m_strPath[index]);
break;
case paths::DOES_NOT_EXIST:
- // Do nothing, empty foldername will be passed to dialog
+ sfolder = paths::GetParentPath(m_strPath[index]);
break;
default:
_RPTF0(_CRT_ERROR, "Invalid return value from paths::DoesPathExist()");