Commit 689742c6 authored by Eike Ziller's avatar Eike Ziller Committed by hjk
Browse files

Use dialog parent for cpaster dialogs

Change-Id: I2561d74522b70bc81345ab9beb60ec7242045509
Reviewed-by: default avatarhjk <>
parent a746f6fb
......@@ -254,7 +254,7 @@ void CodepasterPlugin::post(QString data, const QString &mimeType)
const QString username = m_settings->username;
PasteView view(m_protocols, mimeType, ICore::mainWindow());
PasteView view(m_protocols, mimeType, ICore::dialogParent());
const FileDataList diffChunks = splitDiffToFiles(data);
......@@ -274,7 +274,7 @@ void CodepasterPlugin::fetchUrl()
QUrl url;
do {
bool ok = true;
url = QUrl(QInputDialog::getText(0, tr("Fetch from URL"), tr("Enter URL:"), QLineEdit::Normal, QString(), &ok));
url = QUrl(QInputDialog::getText(ICore::dialogParent(), tr("Fetch from URL"), tr("Enter URL:"), QLineEdit::Normal, QString(), &ok));
if (!ok)
} while (!url.isValid());
......@@ -283,7 +283,7 @@ void CodepasterPlugin::fetchUrl()
void CodepasterPlugin::fetch()
PasteSelectDialog dialog(m_protocols, ICore::mainWindow());
PasteSelectDialog dialog(m_protocols, ICore::dialogParent());
if (dialog.exec() != QDialog::Accepted)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment