Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
0dd30210
Commit
0dd30210
authored
Feb 19, 2010
by
Friedemann Kleint
Browse files
VCS[git]: Stashdialog: Fix broken remove.
Used the wrong indexes, set focus option.
parent
b9b9f752
Changes
1
Show whitespace changes
Inline
Side-by-side
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