1
0
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:
Anthony Bilinski 2022-03-14 00:06:59 -07:00
parent b57e6c6fc4
commit 3bd85452da
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -20,6 +20,8 @@
#include "toxsave.h"
#include "src/persistence/settings.h"
#include "src/widget/gui.h"
#include "src/widget/widget.h"
#include "src/nexus.h"
#include "src/widget/tool/profileimporter.h"
#include <QCoreApplication>
@ -47,6 +49,6 @@ bool ToxSave::toxSaveEventHandler(const QByteArray& eventData, void* userData)
*/
bool ToxSave::handleToxSave(const QString& path)
{
ProfileImporter importer(settings, GUI::getMainWidget());
ProfileImporter importer(settings, Nexus::getDesktopGUI());
return importer.importProfile(path);
}