File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1616#include " ui_conflictdialog.h"
1717
1818#include " conflictsolver.h"
19+ #include " filesystem.h"
1920
2021#include < QDateTime>
2122#include < QDebug>
@@ -132,9 +133,10 @@ void ConflictDialog::updateWidgets()
132133 const auto fileUrl = QUrl::fromLocalFile (filename).toString ();
133134 linkLabel->setText (QStringLiteral (" <a href='%1'>%2</a>" ).arg (fileUrl).arg (linkText));
134135
135- const auto info = QFileInfo (filename);
136- mtimeLabel->setText (info.lastModified ().toString ());
137- sizeLabel->setText (locale ().formattedDataSize (info.size ()));
136+ const auto lastModified = QDateTime::fromTime_t (FileSystem::getModTime (filename));
137+ const auto fileSize = FileSystem::getSize (filename);
138+ mtimeLabel->setText (lastModified.toString ());
139+ sizeLabel->setText (locale ().formattedDataSize (fileSize));
138140
139141 const auto mime = mimeDb.mimeTypeForFile (filename);
140142 if (QIcon::hasThemeIcon (mime.iconName ())) {
You can’t perform that action at this time.
0 commit comments