Skip to content

Commit

Permalink
Merge pull request #5116 from nextcloud/ci/fixMacCompilationEditLocallly
Browse files Browse the repository at this point in the history
use new public API to open an edit locally URL
  • Loading branch information
mgallien authored Oct 31, 2022
2 parents 95776ab + 521054d commit 10d0225
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/cocoainitializer_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#import <AppKit/NSApplication.h>

#include "application.h"
#include "editlocallymanager.h"

/* In theory, we should be able to just capture QFileOpenEvents
* when we open our custom URLs in our Application class and be
Expand Down Expand Up @@ -59,7 +60,7 @@ - (void)handleURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEv
NSURL* url = [NSURL URLWithString:[[event paramDescriptorForKeyword:keyDirectObject] stringValue]];
const auto app = qobject_cast<OCC::Application *>(QApplication::instance());
const auto qtUrl = QUrl::fromNSURL(url);
app->handleEditLocally(qtUrl);
EditLocallyManager::instance()->editLocally(qtUrl);
}

@end
Expand Down

0 comments on commit 10d0225

Please sign in to comment.