Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Commit

Permalink
ISSUE #40 stops the progress bar when commit is done.
Browse files Browse the repository at this point in the history
This has gone wrong weird since we no longer track progress there.
  • Loading branch information
carmenfan committed Sep 4, 2015
1 parent d8b8c64 commit 9ed2ce2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/repo/workers/repo_worker_commit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ CommitWorker::~CommitWorker() {}
void CommitWorker::run()
{
std::cout << tr("Commiting scene to the database, please wait...").toStdString() << std::endl;
int jobsCount = 0;

emit progress(0, 0);
controller->commitScene(token, scene);

//--------------------------------------------------------------------------
// End
emit progress(jobsCount, jobsCount);
emit progress(1, 1);
//--------------------------------------------------------------------------
// Done
emit RepoAbstractWorker::finished();
Expand Down
7 changes: 7 additions & 0 deletions src/repo/workers/repo_worker_glc_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,16 @@ GLCExportWorker::GLCExportWorker(
{
//use stashGraph if available, otherwise use default
if (scene && scene->getRoot(repo::core::model::RepoScene::GraphType::OPTIMIZED))
{
repoDebug << "stash graph found, visualising with stash graph...";
repoViewGraph = repo::core::model::RepoScene::GraphType::OPTIMIZED;
}
else
{
repoDebug << "stash graph not found, visualising with default graph...";
repoViewGraph = repo::core::model::RepoScene::GraphType::DEFAULT;
}

}

GLCExportWorker::~GLCExportWorker() {}
Expand Down

0 comments on commit 9ed2ce2

Please sign in to comment.