Permalink
Browse files

Make KPassivePopup creation consistent.

Does this fix the crash that Nicholas Sushkin was seeing?
  • Loading branch information...
1 parent b11aace commit 5929cc24a202ee4006502042c934ae7d1211462f @atomopawn atomopawn committed Mar 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/bnpview.cpp
View
2 src/bnpview.cpp
@@ -2311,7 +2311,7 @@ void BNPView::showPassiveDroppedDelayed()
QString title = m_passiveDroppedTitle;
delete m_passivePopup; // Delete previous one (if exists): it will then hide it (only one at a time)
- m_passivePopup = new KPassivePopup(Settings::useSystray() ? (QWidget*)Global::systemTray : this);
+ m_passivePopup = new KPassivePopup(Settings::useSystray() ? (QWidget*)Global::systemTray : (QWidget*)this);
QImage contentsImage = NoteDrag::feedbackPixmap(m_passiveDroppedSelection).toImage();
QResource::registerResource(contentsImage.bits(), ":/images/passivepopup_image");
m_passivePopup->setView(

0 comments on commit 5929cc2

Please sign in to comment.