Merge pull request #5127 from nextcloud/bugfix/remove-unused-app-ptr

Remove unused app pointer in CocoaInitializer
This commit is contained in:
Claudio Cambra 2022-11-08 16:31:31 +01:00 committed by GitHub
commit 4c32d54dfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,6 @@
- (void)handleURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent
{
NSURL* url = [NSURL URLWithString:[[event paramDescriptorForKeyword:keyDirectObject] stringValue]];
const auto app = qobject_cast<OCC::Application *>(QApplication::instance());
const auto qtUrl = QUrl::fromNSURL(url);
OCC::EditLocallyManager::instance()->editLocally(qtUrl);
}