src/ldDocument.cpp

changeset 957
429c7ed3cc54
parent 954
7feaa1a3c438
child 958
1dc890c73e01
equal deleted inserted replaced
956:2af18ba2665f 957:429c7ed3cc54
29 #include "editHistory.h" 29 #include "editHistory.h"
30 #include "glRenderer.h" 30 #include "glRenderer.h"
31 #include "glCompiler.h" 31 #include "glCompiler.h"
32 #include "partDownloader.h" 32 #include "partDownloader.h"
33 #include "ldpaths.h" 33 #include "ldpaths.h"
34 #include "dialogs.h" 34 #include "dialogs/openprogressdialog.h"
35 35
36 CFGENTRY (List, RecentFiles, {}) 36 CFGENTRY (List, RecentFiles, {})
37 CFGENTRY (Bool, TryDownloadMissingFiles, false) 37 CFGENTRY (Bool, TryDownloadMissingFiles, false)
38 EXTERN_CFGENTRY (String, DownloadFilePath) 38 EXTERN_CFGENTRY (String, DownloadFilePath)
39 EXTERN_CFGENTRY (Bool, UseLogoStuds) 39 EXTERN_CFGENTRY (Bool, UseLogoStuds)
347 347
348 m_objects << obj; 348 m_objects << obj;
349 setProgress (i); 349 setProgress (i);
350 350
351 // If we have a dialog pointer, update the progress now 351 // If we have a dialog pointer, update the progress now
352 if (isOnForeground()) 352 if (dlg)
353 dlg->updateProgress (i); 353 dlg->setProgress (i);
354 } 354 }
355 355
356 // If we're done now, tell the environment we're done and stop. 356 // If we're done now, tell the environment we're done and stop.
357 if (i >= ((int) lines().size()) - 1) 357 if (i >= ((int) lines().size()) - 1)
358 { 358 {

mercurial