Changeset 620

Show
Ignore:
Timestamp:
11/04/08 18:51:26 (2 months ago)
Author:
smoors
Message:

added error message for the case that "export pattern" fails

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gui/src/MainForm.cpp

    r570 r620  
    623623                if ( err != 0 ) 
    624624                { 
     625                        QMessageBox::warning( this, "Hydrogen", trUtf8("Could not export pattern.") ); 
    625626                        _ERRORLOG ( "Error saving the pattern" ); 
    626627                } 
  • trunk/libs/hydrogen/src/local_file_mgr.cpp

    r436 r620  
    244244 
    245245//test if the file exists  
    246         QFile testfile(sPatternXmlFilename); 
     246        QFile testfile( sPatternXmlFilename ); 
    247247        if ( testfile.exists() && mode == 1) 
    248248                return 1; 
     
    289289        doc.SaveFile(); 
    290290 
    291  
     291        QFile anotherTestfile( sPatternXmlFilename ); 
     292        if ( ! anotherTestfile.exists() ) 
     293                return 1; 
    292294 
    293295        return 0; // ok