mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03:14:06 +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" );
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough );
|
||||
|
||||
|
||||
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 app( "GoldenDict-ng", argc, argv );
|
||||
|
||||
QHotkeyApplication::setApplicationName( "GoldenDict-ng" );
|
||||
QHotkeyApplication::setOrganizationDomain( "https://github.com/xiaoyifang/goldendict-ng" );
|
||||
|
|
Loading…
Reference in a new issue