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
Multimedia
Kdenlive
Commits
89cec14e
Commit
89cec14e
authored
May 12, 2020
by
Jean-Baptiste Mardelle
Browse files
Locate clip: select file in file manager
BUG: 421365
parent
5eadcd26
Pipeline
#20053
passed with stage
in 9 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
89cec14e
...
...
@@ -61,10 +61,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <KRatingPainter>
#include <KMessageBox>
#include <KXMLGUIFactory>
#include <KIO/OpenFileManagerWindowJob>
#include <QToolBar>
#include <QCryptographicHash>
#include <QDesktopServices>
#include <QDrag>
#include <QFile>
#include <QMenu>
...
...
@@ -1512,10 +1512,10 @@ void Bin::slotLocateClip()
currentItem
=
std
::
static_pointer_cast
<
ProjectSubClip
>
(
item
)
->
getMasterClip
();
}
if
(
currentItem
)
{
QUrl
url
=
QUrl
::
fromLocalFile
(
currentItem
->
url
()).
adjusted
(
QUrl
::
RemoveFilename
);
QUrl
url
=
QUrl
::
fromLocalFile
(
currentItem
->
url
())
;
//
.adjusted(QUrl::RemoveFilename);
bool
exists
=
QFile
(
url
.
toLocalFile
()).
exists
();
if
(
currentItem
->
hasUrl
()
&&
exists
)
{
QDesktopServices
::
openUrl
(
url
);
KIO
::
highlightInFileManager
({
url
}
);
qCDebug
(
KDENLIVE_LOG
)
<<
" / / "
+
url
.
toString
();
}
else
{
if
(
!
exists
)
{
...
...
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