diff --git a/src/Plugins/Qt/qt_ui_element.cpp b/src/Plugins/Qt/qt_ui_element.cpp index 861fc61d08..ba204df149 100644 --- a/src/Plugins/Qt/qt_ui_element.cpp +++ b/src/Plugins/Qt/qt_ui_element.cpp @@ -846,7 +846,7 @@ qt_ui_element_rep::as_qwidget () { QToolButton* b = new QToolButton(); QTMLazyMenu* lm = new QTMLazyMenu (pw, b, type == pullright_button); - b->setIcon (QIcon (as_pixmap (*xpm_image (image)))); + b->setIcon (qt_load_icon (image)); b->setPopupMode (QToolButton::InstantPopup); b->setAutoRaise (true); b->setMenu (lm);