Browse Source

refactor(GUI): Remove GUI::getMainWidget

It was just dispatching to Nexus::getDesktopGUI - call it directly instead,
for now.
reviewable/pr6566/r19
Anthony Bilinski 3 years ago
parent
commit
3bd85452da
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 4
      src/persistence/toxsave.cpp

4
src/persistence/toxsave.cpp

@ -20,6 +20,8 @@ @@ -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) @@ -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);
}

Loading…
Cancel
Save