forked from qt-creator/qt-creator
EditorManager: Do not be a widget.
There is no reason for the editor manager itself to be a widget. This makes even less sense in the presence of multiple windows. Change-Id: I384f8945fdd5632d64643e473e6637e05abbce7e Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include "addlibrarywizard.h"
|
||||
#include "wizards/qtquickapp.h"
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
#include <projectexplorer/projectexplorer.h>
|
||||
#include <projectexplorer/buildmanager.h>
|
||||
#include <projectexplorer/session.h>
|
||||
@@ -146,7 +147,7 @@ void QmakeManager::addLibraryContextMenu()
|
||||
|
||||
void QmakeManager::addLibrary(const QString &fileName, ProFileEditor *editor)
|
||||
{
|
||||
AddLibraryWizard wizard(fileName, Core::EditorManager::instance());
|
||||
AddLibraryWizard wizard(fileName, Core::ICore::dialogParent());
|
||||
if (wizard.exec() != QDialog::Accepted)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user