[Psi-devel] recent changes break compilation with whiteboard enabled
Ephraim Talrock
ephraim at coder-board.info
Fri Feb 23 13:02:06 PST 2007
Hey,
recent changes "WDestructiveClose -> WA_DeleteOnClose", breaking the
compilation when whiteboarding is enabled (when before where patched
with my patch so the compilation worked ;) )
Here are the changes need to be done, so compilation work again:
------------------------------------------------------------------------------------
Index: src/wbmanager.cpp
===================================================================
--- src/wbmanager.cpp (Revision 337)
+++ src/wbmanager.cpp (Arbeitskopie)
@@ -142,7 +142,7 @@
}
void WbManager::removeSession(const QString &session) {
- WbDlg* d;
+ WbDlg* d = NULL;
for(int i = 0; i < dialogs_.size(); i++) {
// does the session match?
if(dialogs_.at(i)->session() == session) {
@@ -164,7 +164,7 @@
negotiations_.remove(session);
}
// FIXME: Delete the dialog
- setAttribute(Qt::WA_DeleteOnClose);
+ d->setAttribute(Qt::WA_DeleteOnClose);
d->close();
// d->deleteLater();
------------------------------------------------------------------------------------
Ciao Ephraim
More information about the psi-devel
mailing list