mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 07:24:07 +00:00
opt: remove disable-web-security parameter
this parameter has not documented
This commit is contained in:
parent
e39e5b942d
commit
b207691334
12
src/main.cc
12
src/main.cc
|
@ -344,17 +344,7 @@ int main( int argc, char ** argv )
|
||||||
qputenv( "QT_AUTO_SCREEN_SCALE_FACTOR", "1" );
|
qputenv( "QT_AUTO_SCREEN_SCALE_FACTOR", "1" );
|
||||||
QApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough );
|
QApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough );
|
||||||
|
|
||||||
|
QHotkeyApplication app( "GoldenDict-ng", argc, argv );
|
||||||
char ARG_DISABLE_WEB_SECURITY[] = "--disable-web-security";
|
|
||||||
int newArgc = argc + 1 + 1;
|
|
||||||
char ** newArgv = new char *[ newArgc ];
|
|
||||||
for ( int i = 0; i < argc; i++ ) {
|
|
||||||
newArgv[ i ] = argv[ i ];
|
|
||||||
}
|
|
||||||
newArgv[ argc ] = ARG_DISABLE_WEB_SECURITY;
|
|
||||||
newArgv[ argc + 1 ] = nullptr;
|
|
||||||
|
|
||||||
QHotkeyApplication app( "GoldenDict-ng", newArgc, newArgv );
|
|
||||||
|
|
||||||
QHotkeyApplication::setApplicationName( "GoldenDict-ng" );
|
QHotkeyApplication::setApplicationName( "GoldenDict-ng" );
|
||||||
QHotkeyApplication::setOrganizationDomain( "https://github.com/xiaoyifang/goldendict-ng" );
|
QHotkeyApplication::setOrganizationDomain( "https://github.com/xiaoyifang/goldendict-ng" );
|
||||||
|
|
Loading…
Reference in a new issue