Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CommonGUI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Frédéric Larue
CommonGUI
Commits
a9354ca3
Commit
a9354ca3
authored
Oct 08, 2019
by
Frédéric Larue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
From project item removal dialog improved.
parent
319bdb49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
GUI_main/UIMainWindow.cpp
GUI_main/UIMainWindow.cpp
+11
-3
No files found.
GUI_main/UIMainWindow.cpp
View file @
a9354ca3
...
...
@@ -915,9 +915,17 @@ void UIMainWindow::removeFromCurrentProject()
QList
<
UIDataWidgetItem
*>
*
itemsToRemove
=
(
QList
<
UIDataWidgetItem
*>*
)
&
tempList
;
QString
confirmMsg
(
"Remove the following items?"
);
for
(
auto
i
=
itemsToRemove
->
begin
();
i
!=
itemsToRemove
->
end
();
++
i
)
confirmMsg
+=
"
\n
- "
+
(
*
i
)
->
text
(
0
);
QString
confirmMsg
;
if
(
itemsToRemove
->
size
()
<=
10
)
{
confirmMsg
=
"Remove the following items from the current project?
\n
"
;
auto
i
=
itemsToRemove
->
begin
();
confirmMsg
+=
(
*
i
)
->
text
(
0
);
for
(
++
i
;
i
!=
itemsToRemove
->
end
();
++
i
)
confirmMsg
+=
", "
+
(
*
i
)
->
text
(
0
);
}
else
confirmMsg
=
"Remove the "
+
QString
::
number
(
itemsToRemove
->
size
())
+
" selected items from the current project?"
;
QMessageBox
::
StandardButton
answer
=
QMessageBox
::
warning
(
this
,
...
...
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