Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Farid Abdelnour
kdenlive
Commits
c6adbe25
Commit
c6adbe25
authored
Jan 06, 2019
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix path to title clips not stored
BUG: 377184 Differential revision:
https://phabricator.kde.org/D17995
parent
2257c6c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/titler/titlewidget.cpp
src/titler/titlewidget.cpp
+4
-1
No files found.
src/titler/titlewidget.cpp
View file @
c6adbe25
...
...
@@ -1875,7 +1875,8 @@ void TitleWidget::itemRight()
void
TitleWidget
::
loadTitle
(
QUrl
url
)
{
if
(
!
url
.
isValid
())
{
url
=
QFileDialog
::
getOpenFileUrl
(
this
,
i18n
(
"Load Title"
),
QUrl
::
fromLocalFile
(
m_projectTitlePath
),
i18n
(
"Kdenlive title (*.kdenlivetitle)"
));
QString
startFolder
=
KRecentDirs
::
dir
(
QStringLiteral
(
":KdenliveProjectsTitles"
));
url
=
QFileDialog
::
getOpenFileUrl
(
this
,
i18n
(
"Load Title"
),
QUrl
::
fromLocalFile
(
startFolder
.
isEmpty
()
?
m_projectTitlePath
:
startFolder
),
i18n
(
"Kdenlive title (*.kdenlivetitle)"
));
}
if
(
url
.
isValid
())
{
QList
<
QGraphicsItem
*>
items
=
m_scene
->
items
();
...
...
@@ -1893,6 +1894,8 @@ void TitleWidget::loadTitle(QUrl url)
doc
.
setContent
(
&
file
,
false
);
file
.
close
();
setXml
(
doc
);
m_projectTitlePath
=
QFileInfo
(
file
).
dir
().
absolutePath
();
KRecentDirs
::
add
(
QStringLiteral
(
":KdenliveProjectsTitles"
),
m_projectTitlePath
);
}
}
...
...
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