Avoid explicit deletion of preview window: this crashes on the mac. Use deleteonclose flag instead
This commit is contained in:
parent
1243c30980
commit
d690882b67
@ -99,6 +99,8 @@ static void trimwildcards(string& elt)
|
|||||||
void Preview::init()
|
void Preview::init()
|
||||||
{
|
{
|
||||||
LOGDEB("Preview::init\n");
|
LOGDEB("Preview::init\n");
|
||||||
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
// Create the first tab (the tab widget is created with one
|
// Create the first tab (the tab widget is created with one
|
||||||
// initial tab for ease of use in designer, we remove it).
|
// initial tab for ease of use in designer, we remove it).
|
||||||
addEditorTab();
|
addEditorTab();
|
||||||
|
|||||||
@ -38,7 +38,6 @@ void RclMain::previewClosed(Preview *w)
|
|||||||
} else {
|
} else {
|
||||||
LOGDEB("Old preview closed\n");
|
LOGDEB("Old preview closed\n");
|
||||||
}
|
}
|
||||||
delete w;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Document up to date check. The main problem we try to solve is
|
// Document up to date check. The main problem we try to solve is
|
||||||
|
|||||||
@ -104,6 +104,7 @@ void SnippetsW::init()
|
|||||||
connect(prevPB, SIGNAL(clicked()), this, SLOT(slotEditFindPrevious()));
|
connect(prevPB, SIGNAL(clicked()), this, SLOT(slotEditFindPrevious()));
|
||||||
|
|
||||||
|
|
||||||
|
// Get rid of the placeholder widget created from the .ui
|
||||||
delete browserw;
|
delete browserw;
|
||||||
#if defined(USING_WEBKIT)
|
#if defined(USING_WEBKIT)
|
||||||
browserw = new QWebView(this);
|
browserw = new QWebView(this);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user