Skip to content
GitLab
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
bb10beb1
Commit
bb10beb1
authored
Jul 28, 2010
by
Lasse Holmstedt
Browse files
QML Observer: fix possible crash
parent
b04a4dde
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tools/qml/qmlobserver/editor/crumblepath.cpp
View file @
bb10beb1
...
...
@@ -181,8 +181,6 @@ void CrumblePath::resizeEvent(QResizeEvent *)
void
CrumblePath
::
resizeButtons
()
{
Q_ASSERT
(
!
m_buttons
.
isEmpty
());
int
buttonWidth
=
0
;
if
(
m_buttons
.
length
()
>
1
)
{
QPoint
nextElementPosition
(
0
,
0
);
...
...
@@ -202,7 +200,7 @@ void CrumblePath::resizeButtons()
button
->
stackUnder
(
m_buttons
[
i
-
1
]);
}
}
else
{
}
else
if
(
m_buttons
.
length
()
==
1
)
{
QWidget
*
button
=
m_buttons
[
0
];
int
buttonWidth
=
2
*
width
()
/
(
3
*
m_buttons
.
length
());
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment