Skip to content

Commit

Permalink
refactor(GUI): Remove GUI::getMainWidget
Browse files Browse the repository at this point in the history
It was just dispatching to Nexus::getDesktopGUI - call it directly instead,
for now.
  • Loading branch information
anthonybilinski committed Mar 24, 2022
1 parent b57e6c6 commit 3bd8545
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/persistence/toxsave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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);
}

0 comments on commit 3bd8545

Please sign in to comment.