Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
25d37a49
Commit
25d37a49
authored
Jul 24, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix crash in customize toolbar dialog.
For some reasons, this doesn't crash on Linux...
parent
0bc96b8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+6
-8
No files found.
modules/gui/qt4/dialogs/toolbar.cpp
View file @
25d37a49
...
@@ -647,17 +647,15 @@ inline int DroppingController::getParentPosInLayout( QPoint point )
...
@@ -647,17 +647,15 @@ inline int DroppingController::getParentPosInLayout( QPoint point )
QPoint
origin
=
mapToGlobal
(
point
);
QPoint
origin
=
mapToGlobal
(
point
);
QWidget
*
tempWidg
=
QApplication
::
widgetAt
(
origin
);
QWidget
*
tempWidg
=
QApplication
::
widgetAt
(
origin
);
if
(
tempWidg
==
NULL
)
return
-
1
;
int
i
=
-
1
;
int
i
=
controlLayout
->
indexOf
(
tempWidg
);
if
(
tempWidg
!=
NULL
)
{
i
=
controlLayout
->
indexOf
(
tempWidg
);
if
(
i
==
-
1
)
if
(
i
==
-
1
)
{
{
i
=
controlLayout
->
indexOf
(
tempWidg
->
parentWidget
()
);
i
=
controlLayout
->
indexOf
(
tempWidg
->
parentWidget
()
);
tempWidg
=
tempWidg
->
parentWidget
();
tempWidg
=
tempWidg
->
parentWidget
();
}
}
}
/* Return the nearest position */
/* Return the nearest position */
if
(
(
point
.
x
()
-
tempWidg
->
x
()
>
tempWidg
->
width
()
/
2
)
&&
i
!=
-
1
)
if
(
(
point
.
x
()
-
tempWidg
->
x
()
>
tempWidg
->
width
()
/
2
)
&&
i
!=
-
1
)
...
...
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