Группа :: Графические оболочки/KDE
Пакет: kde5-ksystemlog
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: alt-open-empty-file.patch
Скачать
Скачать
--- a/src/modes/open/openLogMode.cpp
+++ b/src/modes/open/openLogMode.cpp
@@ -45,11 +45,7 @@ QVector<LogFile> OpenLogMode::createLogF
const QUrl openingFileName(QFileDialog::getOpenFileUrl(mParent, i18n("Open Location"), QUrl(), QString()));
qCDebug(KSYSTEMLOG) << "Opening file : " << openingFileName.url();
- if (openingFileName.isEmpty()) {
- return QVector<LogFile>();
- }
-
- if (openingFileName.isValid()) {
+ if (!openingFileName.isEmpty() && openingFileName.isValid()) {
const LogFile logFile(openingFileName, Globals::instance().informationLogLevel());
const QVector<LogFile> logFiles{logFile};