diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp index d54660d6..c446a2bc 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp @@ -1410,6 +1410,11 @@ void TasEditorWindow::updateHistoryItems(void) histTree->viewport()->update(); } //---------------------------------------------------------------------------- +QPoint TasEditorWindow::getPreviewPopupCoordinates(void) +{ + return bkmkBrnchStack->mapToGlobal(QPoint(0,0)); +} +//---------------------------------------------------------------------------- int TasEditorWindow::initModules(void) { // init modules @@ -6542,7 +6547,7 @@ bookmarkPreviewPopup::bookmarkPreviewPopup( int index, QWidget *parent ) free( pixBuf ); pixBuf = NULL; } - pos = parent->mapToGlobal(QPoint(0,0)); + pos = tasWin->getPreviewPopupCoordinates(); pos.setX( pos.x() - 300 ); diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.h b/src/drivers/Qt/TasEditor/TasEditorWindow.h index df186446..d6a3e387 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.h +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.h @@ -388,6 +388,8 @@ class TasEditorWindow : public QDialog bool handleInputColumnSet(int joy, int button); bool handleInputColumnSetUsingPattern(int joy, int button); + QPoint getPreviewPopupCoordinates(void); + protected: void closeEvent(QCloseEvent *event);