Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
7e251362
Commit
7e251362
authored
Nov 22, 2019
by
Luni-4
💬
Browse files
MainWindow: Add a message box if the project path is not found
parent
d8e4a693
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Gui/MainWindow.cpp
View file @
7e251362
...
...
@@ -875,7 +875,17 @@ MainWindow::updateRecentProjects()
);
connect
(
action
,
&
QAction
::
triggered
,
this
,
[
this
,
file
]()
{
Core
::
instance
()
->
project
()
->
load
(
file
);
if
(
QFile
::
exists
(
file
)
==
false
)
{
QMessageBox
::
warning
(
this
,
tr
(
"Project file missing"
),
QStringLiteral
(
"%1
\n
%2"
)
.
arg
(
tr
(
"Sorry, we couldn't find your file. Was it moved, renamed, or deleted?"
)
)
.
arg
(
file
)
);
}
else
{
Core
::
instance
()
->
project
()
->
load
(
file
);
}
}
);
}
m_ui
.
actionRecent_Projects
->
setMenu
(
menu
);
...
...
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