r18232 by jghali - #11485: Popup windows misbehave in Unity
scribus-commit
scribus-commit at lists.scribus.net
Sun Apr 7 16:47:51 UTC 2013
Author: jghali
Date: Sun Apr 7 16:47:51 2013
New Revision: 18232
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18232
Log:
#11485: Popup windows misbehave in Unity
Modified:
trunk/Scribus/scribus/ui/storyeditor.cpp
Modified: trunk/Scribus/scribus/ui/storyeditor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18232&path=/trunk/Scribus/scribus/ui/storyeditor.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/storyeditor.cpp (original)
+++ trunk/Scribus/scribus/ui/storyeditor.cpp Sun Apr 7 16:47:51 2013
@@ -128,8 +128,10 @@
CurrentPar = editor->StyledText.nrOfParagraph(p);
int pos = editor->StyledText.startOfParagraph( editor->StyledText.nrOfParagraph(p) );
+ pmen->clear();
+
QString styleName = "";
- ParaStyleComboBox* paraStyleCombo = new ParaStyleComboBox(this);
+ ParaStyleComboBox* paraStyleCombo = new ParaStyleComboBox(pmen);
paraStyleCombo->setDoc(editor->doc);
if ((CurrentPar < static_cast<int>(editor->StyledText.nrOfParagraphs())) && (editor->StyledText.length() != 0))
{
@@ -139,11 +141,10 @@
}
paraStyleCombo->setFormat(styleName);
connect(paraStyleCombo, SIGNAL(newStyle(const QString&)), this, SLOT(setPStyle(const QString&)));
- pmen->clear();
- paraStyleAct = new QWidgetAction(this);
+
+ paraStyleAct = new QWidgetAction(pmen);
paraStyleAct->setDefaultWidget(paraStyleCombo);
pmen->addAction(paraStyleAct);
- //pmen->addAction( tr("Edit Styles..."), this, SLOT(editStyles()));
pmen->exec(QCursor::pos());
}
More information about the scribus-commit
mailing list