Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
602786fb
Commit
602786fb
authored
Feb 11, 2011
by
Rohit Yadav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ProjectManager: If project file does not exist, remove from recent files list.
parent
fd2ab3b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
src/Gui/project/GuiProjectManager.cpp
src/Gui/project/GuiProjectManager.cpp
+0
-3
src/Project/ProjectManager.cpp
src/Project/ProjectManager.cpp
+7
-2
No files found.
src/Gui/project/GuiProjectManager.cpp
View file @
602786fb
...
...
@@ -311,8 +311,5 @@ GUIProjectManager::loadProject()
void
GUIProjectManager
::
removeProject
(
const
QString
&
fileName
)
{
QFile
projectFile
(
fileName
);
if
(
!
projectFile
.
exists
()
)
return
;
ProjectManager
::
removeProject
(
fileName
);
}
src/Project/ProjectManager.cpp
View file @
602786fb
...
...
@@ -172,11 +172,16 @@ ProjectManager::removeProject( const QString& fileName )
// Remove all occurence of fileName
m_recentsProjects
.
removeAll
(
fileName
);
QSettings
s
;
s
.
setValue
(
"RecentsProjects"
,
m_recentsProjects
);
QFile
projectFile
(
fileName
);
if
(
!
projectFile
.
exists
()
)
return
;
if
(
!
QFile
::
remove
(
fileName
)
)
QMessageBox
::
warning
(
NULL
,
tr
(
"Can't delete project file"
),
tr
(
"Can't delete this project file: %1
\n
Please delete it manually."
).
arg
(
fileName
)
);
QSettings
s
;
s
.
setValue
(
"RecentsProjects"
,
m_recentsProjects
);
}
void
...
...
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