toRemove->askRegisterUndoDestroy();
if(!parent->destroy(toRemove))
Message mess;
+ // Empty the clipboard in order to avoid the copy of a destroyed object.
+ QtGuiContext::getQtCurrent()->setSubjectToCopy(NULL);
}
void GuiEditor::CutSubject()
QString GuiEditor::asciiFilter(const QString & name)
{
DEBTRACE(name.toStdString());
- string aName = name.toAscii().data();
+ string aName = name.toLatin1().data();
DEBTRACE(aName);
for (int i=0; i < aName.size(); i++)
{