Disabled using:

framework AppKit
framework WebKit

It solves crashes JS on MAC with Qt 4.8.

It was been used for parse urls from Safari. It seems to now that code is useless, so ti is disabled for a testing.
preferencesAboutTextFull
Aleksei Kanash 13 years ago
parent c4f97bafed
commit 5047ab2d2b
  1. 5
      Sankore_3.1.pro
  2. 9
      src/frameworks/UBPlatformUtils_mac.mm

@ -134,8 +134,9 @@ win32 {
macx {
LIBS += -framework Foundation
LIBS += -lcrypto
LIBS += -framework AppKit
LIBS += -framework WebKit
#commented because Sankore crashes on Java Script. It seems to backends dependencies.
#LIBS += -framework AppKit
#LIBS += -framework WebKit
CONFIG(release, debug|release):CONFIG += x86

@ -10,8 +10,12 @@
#import <Foundation/NSAutoreleasePool.h>
#import <Carbon/Carbon.h>
#import <APELite.h>
/*
// commented because Sankore crashes on Java Script. It seems to backends dependencies.
#import <WebKit/WebKit.h>
#import <AppKit/AppKit.h>
*/
NSString* bundleShortVersion(NSBundle *bundle)
@ -543,13 +547,14 @@ void UBPlatformUtils::destroyKeyboardLayouts()
QString UBPlatformUtils::urlFromClipboard()
{
QString qsRet;
/*
// commented because Sankore crashes on Java Script. It seems to backends dependencies.
NSPasteboard* pPasteboard = [NSPasteboard pasteboardWithName:@"Apple CFPasteboard drag"];
WebArchive* pArchive = [[WebArchive alloc] initWithData:[pPasteboard dataForType:@"com.apple.webarchive"]];
qsRet = [[[[pArchive mainResource] URL] absoluteString] UTF8String];
[pArchive release];
*/
return qsRet;
}

Loading…
Cancel
Save