src/file.cpp

changeset 542
46a33bdc0b36
parent 541
0e38beeb050a
child 551
0efe5dbcef07
equal deleted inserted replaced
541:0e38beeb050a 542:46a33bdc0b36
506 LDFile* f = new LDFile; 506 LDFile* f = new LDFile;
507 f->setName (""); 507 f->setName ("");
508 f->setImplicit (false); 508 f->setImplicit (false);
509 g_loadedFiles << f; 509 g_loadedFiles << f;
510 LDFile::setCurrent (f); 510 LDFile::setCurrent (f);
511
512 LDFile::closeInitialFile(); 511 LDFile::closeInitialFile();
513
514 g_win->R()->setFile (f); 512 g_win->R()->setFile (f);
515 g_win->doFullRefresh(); 513 g_win->doFullRefresh();
516 g_win->updateTitle(); 514 g_win->updateTitle();
517 f->getHistory()->updateActions(); 515 g_win->updateActions();
518 } 516 }
519 517
520 // ============================================================================= 518 // =============================================================================
521 // ----------------------------------------------------------------------------- 519 // -----------------------------------------------------------------------------
522 void addRecentFile (str path) 520 void addRecentFile (str path)

mercurial