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.
This commit is contained in:
Christian Prochaska 2012-10-29 15:25:40 +01:00 committed by Norman Feske
parent d46c79b428
commit a48942bffc
1 changed files with 1 additions and 1 deletions

View File

@ -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);