Fixed two dialogs to use the main window as parent

Setting a parent makes sure the dialog is correctly centered and shares
the taskbar entry.
This commit is contained in:
Thorbjørn Lindeijer
2009-05-11 17:52:15 +02:00
parent 870139fd42
commit 1e4620a655
3 changed files with 5 additions and 3 deletions

View File

@@ -204,7 +204,7 @@ void CodepasterPlugin::fetch()
}
m_fetcher = new CustomFetcher(serverUrl());
QDialog dialog;
QDialog dialog(ICore::instance()->mainWindow());
Ui_PasteSelectDialog ui;
ui.setupUi(&dialog);