diff --git a/qucs/qucs-activefilter/main.cpp b/qucs/qucs-activefilter/main.cpp index 6f81a2e1aa..0d4debeb81 100644 --- a/qucs/qucs-activefilter/main.cpp +++ b/qucs/qucs-activefilter/main.cpp @@ -63,6 +63,8 @@ bool saveApplSettings(QucsActiveFilter *qucs) int main(int argc, char *argv[]) { + QApplication a(argc, argv); + QString LangDir; // apply default settings QucsSettings.x = 200; @@ -91,7 +93,6 @@ int main(int argc, char *argv[]) loadSettings(); - QApplication a(argc, argv); a.setFont(QucsSettings.font); QTranslator tor( 0 ); diff --git a/qucs/qucs-attenuator/main.cpp b/qucs/qucs-attenuator/main.cpp index bec266af82..a3e3f41fed 100644 --- a/qucs/qucs-attenuator/main.cpp +++ b/qucs/qucs-attenuator/main.cpp @@ -64,6 +64,8 @@ bool saveApplSettings(QucsAttenuator *qucs) int main( int argc, char ** argv ) { + QApplication a( argc, argv ); + // apply default settings QucsSettings.x = 200; QucsSettings.y = 100; @@ -90,7 +92,6 @@ int main( int argc, char ** argv ) loadSettings(); - QApplication a( argc, argv ); a.setFont(QucsSettings.font); QTranslator tor( 0 ); QString lang = QucsSettings.Language; diff --git a/qucs/qucs-edit/main.cpp b/qucs/qucs-edit/main.cpp index a441d318ae..23e3b06810 100644 --- a/qucs/qucs-edit/main.cpp +++ b/qucs/qucs-edit/main.cpp @@ -90,6 +90,8 @@ void showOptions() int main(int argc, char *argv[]) { + QApplication a(argc, argv); + // apply default settings QucsSettings.x = 200; QucsSettings.y = 100; @@ -118,7 +120,6 @@ int main(int argc, char *argv[]) loadSettings(); - QApplication a(argc, argv); a.setFont(QucsSettings.font); QTranslator tor( 0 ); diff --git a/qucs/qucs-filter-v2/qf_main.cpp b/qucs/qucs-filter-v2/qf_main.cpp index a7bcf4e989..54ed58a594 100644 --- a/qucs/qucs-filter-v2/qf_main.cpp +++ b/qucs/qucs-filter-v2/qf_main.cpp @@ -34,6 +34,8 @@ void compute_lumped (qf_spec* spec_p, Q3TextStream& out) { int main (int argc, char * argv []) { + QApplication app (argc, argv); + // apply default settings QucsSettings.x = 200; QucsSettings.y = 100; @@ -60,7 +62,6 @@ int main (int argc, char * argv []) { loadSettings(); - QApplication app (argc, argv); qf_spec* spec_p; int result = 0; diff --git a/qucs/qucs-filter/main.cpp b/qucs/qucs-filter/main.cpp index 69847e35e2..73840a7abf 100644 --- a/qucs/qucs-filter/main.cpp +++ b/qucs/qucs-filter/main.cpp @@ -77,6 +77,8 @@ bool saveApplSettings(QucsFilter *qucs) int main(int argc, char *argv[]) { + QApplication a(argc, argv); + // apply default settings QucsSettings.x = 200; QucsSettings.y = 100; @@ -103,7 +105,6 @@ int main(int argc, char *argv[]) loadSettings(); - QApplication a(argc, argv); a.setFont(QucsSettings.font); QTranslator tor( 0 ); diff --git a/qucs/qucs-lib/main.cpp b/qucs/qucs-lib/main.cpp index 499ca379b9..6032f29e9e 100644 --- a/qucs/qucs-lib/main.cpp +++ b/qucs/qucs-lib/main.cpp @@ -84,6 +84,8 @@ bool saveApplSettings(QucsLib *qucs) int main(int argc, char *argv[]) { + QApplication a(argc, argv); + // apply default settings QucsSettings.x = 100; QucsSettings.y = 50; @@ -115,7 +117,6 @@ int main(int argc, char *argv[]) UserLibDir.setPath(QucsSettings.QucsHomeDir.canonicalPath() + "/user_lib/"); - QApplication a(argc, argv); a.setFont(QucsSettings.font); QTranslator tor( 0 ); diff --git a/qucs/qucs-rescodes/main.cpp b/qucs/qucs-rescodes/main.cpp index a5fd6b29c6..1d542824e8 100644 --- a/qucs/qucs-rescodes/main.cpp +++ b/qucs/qucs-rescodes/main.cpp @@ -223,6 +223,8 @@ bool saveApplSettings(MyWidget *w) int main( int argc, char **argv ) { + QApplication a(argc, argv); + // apply default settings QucsSettings.x = 100; QucsSettings.y = 50; @@ -247,7 +249,6 @@ int main( int argc, char **argv ) loadSettings(); - QApplication a(argc, argv); a.setFont(QucsSettings.font); QTranslator tor(0); diff --git a/qucs/qucs-transcalc/main.cpp b/qucs/qucs-transcalc/main.cpp index ad82b115d2..882e00512d 100644 --- a/qucs/qucs-transcalc/main.cpp +++ b/qucs/qucs-transcalc/main.cpp @@ -97,6 +97,8 @@ bool saveApplSettings(QucsTranscalc *qucs) int main(int argc, char *argv[]) { + QApplication a(argc, argv); + // apply default settings QucsSettings.x = 100; QucsSettings.y = 50; @@ -129,7 +131,6 @@ int main(int argc, char *argv[]) } loadSettings(); - QApplication a(argc, argv); a.setFont(QucsSettings.font); QTranslator tor( 0 );