Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
2b0e0ffc
Kaydet (Commit)
2b0e0ffc
authored
Agu 10, 2015
tarafından
Szymon Kłos
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
when user typed a folder name, open it
Change-Id: I800f97bfd9f564c065ca7e59f5751768f2f2bd0d
üst
41102d9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
RemoteFilesDialog.cxx
fpicker/source/office/RemoteFilesDialog.cxx
+15
-5
No files found.
fpicker/source/office/RemoteFilesDialog.cxx
Dosyayı görüntüle @
2b0e0ffc
...
@@ -914,6 +914,9 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, NewFolderHdl )
...
@@ -914,6 +914,9 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, NewFolderHdl )
IMPL_LINK_NOARG
(
RemoteFilesDialog
,
OkHdl
)
IMPL_LINK_NOARG
(
RemoteFilesDialog
,
OkHdl
)
{
{
OUString
sNameNoExt
=
m_pName_ed
->
GetText
();
OUString
sPathNoExt
;
// auto extension
// auto extension
if
(
m_eMode
==
REMOTEDLG_MODE_SAVE
)
if
(
m_eMode
==
REMOTEDLG_MODE_SAVE
)
AddFileExtension
();
AddFileExtension
();
...
@@ -933,6 +936,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl )
...
@@ -933,6 +936,7 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl )
if
(
!
bSelected
)
if
(
!
bSelected
)
{
{
m_sPath
=
sCurrentPath
+
INetURLObject
::
encode
(
sName
,
INetURLObject
::
PART_FPATH
,
INetURLObject
::
ENCODE_ALL
);
m_sPath
=
sCurrentPath
+
INetURLObject
::
encode
(
sName
,
INetURLObject
::
PART_FPATH
,
INetURLObject
::
ENCODE_ALL
);
sPathNoExt
=
sCurrentPath
+
INetURLObject
::
encode
(
sNameNoExt
,
INetURLObject
::
PART_FPATH
,
INetURLObject
::
ENCODE_ALL
);
}
}
else
else
{
{
...
@@ -953,11 +957,11 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl )
...
@@ -953,11 +957,11 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl )
bool
bExists
=
false
;
bool
bExists
=
false
;
if
(
bFileDlg
)
if
(
bFileDlg
)
bExists
=
ContentIsDocument
(
m_sPath
);
bExists
=
ContentIsDocument
(
m_sPath
);
else
else
bExists
=
ContentIsFolder
(
m_sPath
);
bExists
=
ContentIsFolder
(
m_sPath
);
if
(
bExists
)
if
(
bExists
)
{
{
if
(
m_eMode
==
REMOTEDLG_MODE_SAVE
)
if
(
m_eMode
==
REMOTEDLG_MODE_SAVE
)
{
{
...
@@ -970,9 +974,15 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl )
...
@@ -970,9 +974,15 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, OkHdl )
}
}
else
else
{
{
if
(
m_eMode
==
REMOTEDLG_MODE_OPEN
)
if
(
ContentIsFolder
(
sPathNoExt
)
)
{
OpenURL
(
sPathNoExt
);
m_pName_ed
->
SetText
(
""
);
return
0
;
return
0
;
if
(
m_eMode
==
REMOTEDLG_MODE_SAVE
&&
ContentIsFolder
(
m_sPath
)
)
}
if
(
m_eMode
==
REMOTEDLG_MODE_OPEN
)
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment