forked from qt-creator/qt-creator
Use dialog parent for cpaster dialogs
Change-Id: I2561d74522b70bc81345ab9beb60ec7242045509 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -254,7 +254,7 @@ void CodepasterPlugin::post(QString data, const QString &mimeType)
|
|||||||
|
|
||||||
const QString username = m_settings->username;
|
const QString username = m_settings->username;
|
||||||
|
|
||||||
PasteView view(m_protocols, mimeType, ICore::mainWindow());
|
PasteView view(m_protocols, mimeType, ICore::dialogParent());
|
||||||
view.setProtocol(m_settings->protocol);
|
view.setProtocol(m_settings->protocol);
|
||||||
|
|
||||||
const FileDataList diffChunks = splitDiffToFiles(data);
|
const FileDataList diffChunks = splitDiffToFiles(data);
|
||||||
@@ -274,7 +274,7 @@ void CodepasterPlugin::fetchUrl()
|
|||||||
QUrl url;
|
QUrl url;
|
||||||
do {
|
do {
|
||||||
bool ok = true;
|
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)
|
if (!ok)
|
||||||
return;
|
return;
|
||||||
} while (!url.isValid());
|
} while (!url.isValid());
|
||||||
@@ -283,7 +283,7 @@ void CodepasterPlugin::fetchUrl()
|
|||||||
|
|
||||||
void CodepasterPlugin::fetch()
|
void CodepasterPlugin::fetch()
|
||||||
{
|
{
|
||||||
PasteSelectDialog dialog(m_protocols, ICore::mainWindow());
|
PasteSelectDialog dialog(m_protocols, ICore::dialogParent());
|
||||||
dialog.setProtocol(m_settings->protocol);
|
dialog.setProtocol(m_settings->protocol);
|
||||||
|
|
||||||
if (dialog.exec() != QDialog::Accepted)
|
if (dialog.exec() != QDialog::Accepted)
|
||||||
|
|||||||
Reference in New Issue
Block a user