diff -r 271c0cce0f64 libgui/src/m-editor/file-editor-tab.cc --- a/libgui/src/m-editor/file-editor-tab.cc Sat Oct 26 23:20:30 2013 +0200 +++ b/libgui/src/m-editor/file-editor-tab.cc Sun Oct 27 10:39:15 2013 +0100 @@ -287,17 +287,6 @@ _lexer_apis = new QsciAPIs(lexer); if (_lexer_apis) { - // get path to prepared api info - QDesktopServices desktopServices; - QString prep_apis_path - = desktopServices.storageLocation (QDesktopServices::HomeLocation) - + "/.config/octave/" + QString(OCTAVE_VERSION) + "/qsci/"; - _prep_apis_file = prep_apis_path + lexer->lexer () + ".pap"; - - if (!_lexer_apis->loadPrepared (_prep_apis_file)) - { // no prepared info loaded, prepare and save if possible - - // create raw apis info QString keyword; QStringList keyword_list; int i,j; @@ -308,17 +297,6 @@ for (j = 0; j < keyword_list.size (); j++) // add to API _lexer_apis->add (keyword_list.at (j)); } - - // dsiconnect slot for saving prepared info if already connected - disconnect (_lexer_apis, SIGNAL (apiPreparationFinished ()), 0, 0); - // check whether path for prepared info exists or can be created - if (QDir("/").mkpath (prep_apis_path)) - { // path exists, apis info can be saved there - connect (_lexer_apis, SIGNAL (apiPreparationFinished ()), - this, SLOT (save_apis_info ())); - } - _lexer_apis->prepare (); // prepare apis info - } } QSettings *settings = resource_manager::get_settings ();