mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 00:42:19 -07:00
[Client] Reuse one IntentUrlParser instance for cockatrice:// links
Took 59 seconds
This commit is contained in:
parent
bffe4f1490
commit
3bb355278d
2 changed files with 3 additions and 1 deletions
|
|
@ -498,6 +498,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
pixmapCacheSizeChanged(SettingsCache::instance().cacheStorage().getPixmapCacheSize());
|
||||
|
||||
connectionController = new ConnectionController(this, this);
|
||||
urlParser = new IntentUrlParser(this, this);
|
||||
|
||||
createActions();
|
||||
createMenus();
|
||||
|
|
@ -865,7 +866,6 @@ void MainWindow::showWindowIfHidden()
|
|||
|
||||
void MainWindow::handleCockatriceLink(const QString &url)
|
||||
{
|
||||
auto urlParser = new IntentUrlParser(this, this);
|
||||
urlParser->handle(url);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ class TabSupervisor;
|
|||
class WndSets;
|
||||
class DlgTipOfTheDay;
|
||||
struct ContextConnectToServer;
|
||||
class IntentUrlParser;
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
|
|
@ -140,6 +141,7 @@ private:
|
|||
*aOpenSettingsFolder;
|
||||
|
||||
TabSupervisor *tabSupervisor;
|
||||
IntentUrlParser *urlParser;
|
||||
WndSets *wndSets;
|
||||
ConnectionController *connectionController;
|
||||
LocalServer *localServer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue