Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
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
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
Marco Bubke
flatpak-qt-creator
Commits
0dd30210
Commit
0dd30210
authored
Feb 19, 2010
by
Friedemann Kleint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VCS[git]: Stashdialog: Fix broken remove.
Used the wrong indexes, set focus option.
parent
b9b9f752
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/plugins/git/stashdialog.cpp
src/plugins/git/stashdialog.cpp
+3
-1
No files found.
src/plugins/git/stashdialog.cpp
View file @
0dd30210
...
...
@@ -134,6 +134,8 @@ StashDialog::StashDialog(QWidget *parent) :
m_proxyModel
->
setFilterCaseSensitivity
(
Qt
::
CaseInsensitive
);
ui
->
stashView
->
setModel
(
m_proxyModel
);
ui
->
stashView
->
setSelectionMode
(
QAbstractItemView
::
MultiSelection
);
ui
->
stashView
->
setAllColumnsShowFocus
(
true
);
ui
->
stashView
->
setUniformRowHeights
(
true
);
connect
(
ui
->
filterLineEdit
,
SIGNAL
(
filterChanged
(
QString
)),
m_proxyModel
,
SLOT
(
setFilterFixedString
(
QString
)));
connect
(
ui
->
stashView
->
selectionModel
(),
SIGNAL
(
currentRowChanged
(
QModelIndex
,
QModelIndex
)),
this
,
SLOT
(
enableButtons
()));
...
...
@@ -212,7 +214,7 @@ void StashDialog::deleteSelection()
QStringList
errors
;
// Delete in reverse order as stashes rotate
for
(
int
r
=
rows
.
size
()
-
1
;
r
>=
0
;
r
--
)
if
(
!
gitClient
()
->
synchronousStashRemove
(
m_repository
,
m_model
->
at
(
r
).
name
,
&
errorMessage
))
if
(
!
gitClient
()
->
synchronousStashRemove
(
m_repository
,
m_model
->
at
(
r
ows
.
at
(
r
)
).
name
,
&
errorMessage
))
errors
.
push_back
(
errorMessage
);
refresh
(
m_repository
,
true
);
if
(
!
errors
.
isEmpty
())
...
...
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