mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Context: No longer calls Context methods while dtor is running.
This commit is contained in:
parent
3708f852c2
commit
e2f504e686
3 changed files with 8 additions and 2 deletions
|
@ -43,6 +43,8 @@
|
|||
|
||||
extern Context context;
|
||||
|
||||
bool TDB2::debug_mode = false;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
TF2::TF2 ()
|
||||
: _read_only (false)
|
||||
|
@ -57,7 +59,7 @@ TF2::TF2 ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
TF2::~TF2 ()
|
||||
{
|
||||
if (_dirty && context.verbose ("debug"))
|
||||
if (_dirty && TDB2::debug_mode)
|
||||
std::cout << format (STRING_TDB2_DIRTY_EXIT, std::string (_file))
|
||||
<< "\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue