mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 04:15:37 -04:00
[partition] Fix logic errors in stringification of MessageAndPath
This commit is contained in:
parent
c322eaa430
commit
f49389a408
1 changed files with 4 additions and 3 deletions
|
@ -125,13 +125,14 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
bool isEmpty() const { return m_message; }
|
||||
bool isEmpty() const { return !m_message; }
|
||||
|
||||
explicit operator QString() const
|
||||
{
|
||||
return isEmpty() ? QString() : QCoreApplication::translate( "ClearMountsJob", m_message );
|
||||
return isEmpty() ? QString() : QCoreApplication::translate( "ClearMountsJob", m_message ).arg( m_path );
|
||||
}
|
||||
|
||||
private:
|
||||
const char* const m_message = nullptr;
|
||||
QString const m_path;
|
||||
};
|
||||
|
@ -143,7 +144,7 @@ operator<<( QDebug& s, const MessageAndPath& m )
|
|||
{
|
||||
return s;
|
||||
}
|
||||
return s << QString( m.m_message ).arg( m.m_path );
|
||||
return s << QString( m );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue