ui: Fixed file out-of-date star disappearing when showing snippets after minimized state, AKA star bug

This commit is contained in:
Eberhard Graether
2016-07-19 14:42:04 +02:00
parent 46be24ab26
commit f93b31a942
3 changed files with 12 additions and 2 deletions
+5
View File
@@ -24,6 +24,11 @@ TimePoint::TimePoint(std::string s)
}
}
bool TimePoint::isValid() const
{
return m_time != boost::posix_time::not_a_date_time;
}
std::string TimePoint::toString() const
{
std::stringstream stream;
+2
View File
@@ -11,6 +11,8 @@ public:
//TimePoint(time_t t);
TimePoint(std::string s);
bool isValid() const;
std::string toString() const;
inline bool operator==(const TimePoint& rhs){ return m_time == rhs.m_time; }
+5 -2
View File
@@ -111,8 +111,11 @@ QtCodeFile::~QtCodeFile()
void QtCodeFile::setModificationTime(TimePoint modificationTime)
{
m_modificationTime = modificationTime;
updateTitleBar();
if (modificationTime.isValid())
{
m_modificationTime = modificationTime;
updateTitleBar();
}
}
const FilePath& QtCodeFile::getFilePath() const