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
Office
Tellico
Commits
4325ba5d
Commit
4325ba5d
authored
May 12, 2012
by
Robby Stephenson
Browse files
Use a temporary directory for images if the file has not been saved
CCBUG: 299130
parent
708f73a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/images/imagedirectory.cpp
View file @
4325ba5d
...
...
@@ -53,6 +53,13 @@ ImageDirectory::~ImageDirectory() {
}
QString
ImageDirectory
::
path
()
{
if
(
m_path
.
isEmpty
())
{
// an empty path means the file hasn't been saved yet
if
(
!
m_dir
)
{
m_dir
=
new
KTempDir
();
// default is to auto-delete, aka autoRemove()
}
setPath
(
m_dir
->
name
());
}
return
m_path
;
}
...
...
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