Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
7cf04caf
Commit
7cf04caf
authored
Mar 12, 2021
by
Waqar Ahmed
Committed by
Christoph Cullmann
Mar 12, 2021
Browse files
Switch to project after opening it
parent
82eae1d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectpluginview.cpp
View file @
7cf04caf
...
...
@@ -644,7 +644,14 @@ void KateProjectPluginView::slotUpdateStatus(bool visible)
void
KateProjectPluginView
::
openDirectoryOrProject
()
{
const
QString
dir
=
QFileDialog
::
getExistingDirectory
(
nullptr
,
i18n
(
"Choose a directory"
),
QDir
::
currentPath
());
m_plugin
->
projectForDir
(
dir
,
true
);
auto
project
=
m_plugin
->
projectForDir
(
dir
,
true
);
// switch to this project
if
(
project
)
{
int
index
=
m_projectsCombo
->
findData
(
project
->
fileName
());
if
(
index
>=
0
)
{
m_projectsCombo
->
setCurrentIndex
(
index
);
}
}
}
#include "kateprojectpluginview.moc"
Write
Preview
Supports
Markdown
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