Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit c0a26cb

Browse files
committed
fixed potential crash when getting some status folders.
1 parent 28cae92 commit c0a26cb

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

src/duqf-app/app-version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#define VERSION_MAJOR 0
55
#define VERSION_MINOR 8
6-
#define VERSION_BUILD 6
6+
#define VERSION_BUILD 7
77
#define VERSION_SUFFIX "Beta"
88

99
#define STRINGIFY_VERSION(A, B, C) CONCAT(A, B, C )

src/ramobjectmodels/ramstatustablemodel.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,6 @@ void RamStatusTableModel::cacheStepEstimation(QString stepUuid)
338338

339339
void RamStatusTableModel::cacheEstimations()
340340
{
341-
qDebug() << "Computing estimations";
342-
343341
m_estimations.clear();
344342

345343
QHash<QString, StepEstimation> allEstimation;
@@ -376,8 +374,6 @@ void RamStatusTableModel::cacheEstimations()
376374
QHash<QString, StepEstimation>::iterator i = allEstimation.begin();
377375
while (i != allEstimation.end()) {
378376

379-
qDebug() << "> Step estimation: " << i.key();
380-
381377
StepEstimation stepEstim = i.value();
382378
int num = numItems.value(i.key());
383379

@@ -389,9 +385,6 @@ void RamStatusTableModel::cacheEstimations()
389385
stepEstim.completionRatio = 100;
390386
}
391387

392-
qDebug() << ">> Estimation: " << stepEstim.estimation;
393-
qDebug() << ">> Completion: " << stepEstim.completionRatio;
394-
395388
i.value() = stepEstim;
396389

397390
emit stepEstimationChanged(i.key());
@@ -401,8 +394,6 @@ void RamStatusTableModel::cacheEstimations()
401394

402395
m_estimations = allEstimation;
403396

404-
qDebug() << "> Estimations computed";
405-
406397
emit estimationsChanged();
407398
}
408399

src/ramobjects/ramstatus.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ QString RamStatus::folderPath() const
644644
{
645645
if (!m_item) return "";
646646
RamProject *project = m_item->project();
647+
if (!project) return "";
647648
QString type = "_G_";
648649
if (m_item->objectType() == RamObject::Shot) type = "_S_";
649650
else if (m_item->objectType() == RamObject::Asset) type = "_A_";

0 commit comments

Comments
 (0)