"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/engine/import.cpp" between
fet-5.47.0.tar.bz2 and fet-5.47.1.tar.bz2

About: FET allows to automatically schedule a timetable for e.g. of a school, high-school or university.

import.cpp  (fet-5.47.0.tar.bz2):import.cpp  (fet-5.47.1.tar.bz2)
skipping to change at line 923 skipping to change at line 923
assert(fieldNumber[i]<=numberOfFields); assert(fieldNumber[i]<=numberOfFields);
assert(fieldNumber[i]>=DO_NOT_IMPORT); assert(fieldNumber[i]>=DO_NOT_IMPORT);
} }
QFile file(fileName); QFile file(fileName);
if(fileName.isEmpty()){ if(fileName.isEmpty()){
QMessageBox::warning(parent, tr("FET warning"), tr("Empty filenam e.")); QMessageBox::warning(parent, tr("FET warning"), tr("Empty filenam e."));
return false; return false;
} }
if(!file.open(QIODevice::ReadOnly)){ if(!file.open(QIODevice::ReadOnly)){
QMessageBox::warning(parent, tr("Error! Can't open file."),fileNa me); QMessageBox::warning(parent, tr("Error! Can't open file."), fileN ame);
return false; return false;
} }
QTextStream in(&file); QTextStream in(&file);
in.setCodec("UTF-8"); in.setCodec("UTF-8");
qint64 size=file.size(); qint64 size=file.size();
QProgressDialog* _progress=new QProgressDialog(parent); QProgressDialog* _progress=new QProgressDialog(parent);
QProgressDialog& progress=(*_progress); QProgressDialog& progress=(*_progress);
progress.setWindowTitle(tr("Importing", "Title of a progress dialog")); progress.setWindowTitle(tr("Importing", "Title of a progress dialog"));
progress.setLabelText(tr("Loading file")); progress.setLabelText(tr("Loading file"));
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)