Ignore:
Timestamp:
May 27, 2006, 12:07:13 PM (16 years ago)
Author:
Eugene Romanenko
Message:

fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/lucide.cpp

    r26 r28  
    284284    else
    285285    {
     286        // test if extension supported and then close previous opened document
     287        if ( pluginMan->createDocumentForExt( ext + 1, true ) != NULL ) {
     288            docViewer->close();
     289            delete doc;
     290            doc = NULL;
     291        }
     292
    286293        LuDocument *d = pluginMan->createDocumentForExt( ext + 1, false );
    287294        if ( d == NULL ) {
     
    293300            char *error = NULL;
    294301            if ( d->loadFile( ev, (char *)fn, NULL, &error ) ) {
    295                 docViewer->close();
    296                 delete doc;
    297302                doc = d;
    298303                setDocument( doc );
Note: See TracChangeset for help on using the changeset viewer.