mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor(GUI): Remove GUI::getMainWidget
It was just dispatching to Nexus::getDesktopGUI - call it directly instead, for now.
This commit is contained in:
parent
b57e6c6fc4
commit
3bd85452da
|
@ -20,6 +20,8 @@
|
||||||
#include "toxsave.h"
|
#include "toxsave.h"
|
||||||
#include "src/persistence/settings.h"
|
#include "src/persistence/settings.h"
|
||||||
#include "src/widget/gui.h"
|
#include "src/widget/gui.h"
|
||||||
|
#include "src/widget/widget.h"
|
||||||
|
#include "src/nexus.h"
|
||||||
#include "src/widget/tool/profileimporter.h"
|
#include "src/widget/tool/profileimporter.h"
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
|
@ -47,6 +49,6 @@ bool ToxSave::toxSaveEventHandler(const QByteArray& eventData, void* userData)
|
||||||
*/
|
*/
|
||||||
bool ToxSave::handleToxSave(const QString& path)
|
bool ToxSave::handleToxSave(const QString& path)
|
||||||
{
|
{
|
||||||
ProfileImporter importer(settings, GUI::getMainWidget());
|
ProfileImporter importer(settings, Nexus::getDesktopGUI());
|
||||||
return importer.importProfile(path);
|
return importer.importProfile(path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user