From a48942bffcab04736a5b9ace7d1a03a1ee4694cb Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Mon, 29 Oct 2012 15:25:40 +0100 Subject: [PATCH] Fix warning in QPluginWidget test Create the signal context object before the signal receiver object to get the signal receiver destroyed before the signal context. This avoids a 'specified signal-context capability has wrong type' warning when the signal receiver tries to free its managed context on destruction. Part of #448. --- qt4/src/lib/qpluginwidget/qpluginwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt4/src/lib/qpluginwidget/qpluginwidget.cpp b/qt4/src/lib/qpluginwidget/qpluginwidget.cpp index 58ac4a1e0..79a29dd17 100644 --- a/qt4/src/lib/qpluginwidget/qpluginwidget.cpp +++ b/qt4/src/lib/qpluginwidget/qpluginwidget.cpp @@ -184,8 +184,8 @@ void PluginStarter::_start_plugin(QString &file_name, QByteArray const &file_buf _pc->commit_rom_module("config"); } - Signal_receiver sig_rec; Signal_context sig_ctx; + Signal_receiver sig_rec; _pc->view_ready_sigh(sig_rec.manage(&sig_ctx)); _pc->constrain_geometry(_max_width, _max_height);