Revision 6d71876d
Von Christian Ehringfeld vor mehr als 7 Jahren hinzugefügt
samples/simple/incident.cpp | ||
---|---|---|
// reproduce: change attendanceIncident, ok, change again
|
||
// qint64 diff = qAbs(m_cancelledAt.secsTo(cancelledAt));
|
||
// if (diff > 10) { // giving some delay headroom for a possible double call
|
||
qDebug()<< "\n\n-------------------------------\n-------------------------------\n----------" \
|
||
"---------------------\nWHY DOES THIS HAPPEN? \nEach incident's cancelledAt has been invalidated in the ctor! " \
|
||
"\n------------------------\n-------------------------------\n-------------------------------\n----------------";
|
||
|
||
qDebug()<< "\n\n-------------------------------\n-------------------------------\n-------------------------------\nWHY DOES THIS HAPPEN? \nEach incident's cancelledAt has been invalidated in the ctor!\n------------------------\n-------------------------------\n-------------------------------\n-------------------------------";
|
||
// Q_ASSERT(!m_cancelledAt.isValid());
|
||
// THROW_MODERATE_ERROR_CIT("Das Canceln eines Ereignisses ist fehlgeschlagen, das Ereignis war bereits vorher gecancelt!");
|
||
// }
|
samples/simple/main.cpp | ||
---|---|---|
success &= e->save(inc);
|
||
success &= inc->getId() >= 0; // check
|
||
}
|
||
qDebug()<<(success ? "JAAA es hat geklappt!" : "Immerhin kann man das hier sehen...");
|
||
|
||
|
||
} catch(QString s) {
|
||
qDebug()<<s;
|
||
}
|
Auch abrufbar als: Unified diff
Revert "clarification"
This reverts commit d15c8fa61ee4b775b3cec445e8cff42879f57c97.