Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLMC
Manage
Activity
Members
Labels
Plan
Issues
26
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLMC
Commits
7e251362
Commit
7e251362
authored
5 years ago
by
Luni-4
Browse files
Options
Downloads
Patches
Plain Diff
MainWindow: Add a message box if the project path is not found
parent
d8e4a693
No related branches found
No related tags found
1 merge request
!2
Add a message box if the project path is not found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Gui/MainWindow.cpp
+11
-1
11 additions, 1 deletion
src/Gui/MainWindow.cpp
with
11 additions
and
1 deletion
src/Gui/MainWindow.cpp
+
11
−
1
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment