Skip to content

Commit 28adf63

Browse files
committed
survey
1 parent fa2254d commit 28adf63

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ set(APP_AUTHOR "Martin Rotter")
7878
set(APP_COPYRIGHT "\\251 2011-${YEAR} ${APP_AUTHOR}")
7979
set(APP_REVERSE_NAME "io.github.martinrotter.rssguard")
8080
set(APP_DONATE_URL "https://github.com/sponsors/martinrotter")
81-
set(APP_VERSION "4.8.3")
81+
set(APP_VERSION "4.8.4")
8282

8383
set(APP_URL "https://github.com/martinrotter/rssguard")
8484
set(APP_URL_DOCUMENTATION "https://rssguard.readthedocs.io")

src/librssguard/miscellaneous/application.cpp

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,11 @@ void Application::performLogging(QtMsgType type, const QMessageLogContext& conte
331331
}
332332

333333
if (!s_customLogFile.isEmpty()) {
334-
QFile log_file(s_customLogFile);
334+
static QFile* log_file = new QFile(s_customLogFile);
335335

336-
if (log_file.open(QFile::OpenModeFlag::Append | QFile::OpenModeFlag::Unbuffered)) {
337-
log_file.write(console_message.toUtf8());
338-
log_file.write(QSL("\r\n").toUtf8());
339-
log_file.close();
336+
if (log_file->isOpen() || log_file->open(QFile::OpenModeFlag::Append | QFile::OpenModeFlag::Unbuffered)) {
337+
log_file->write(console_message.toUtf8());
338+
log_file->write(QSL("\r\n").toUtf8());
340339
}
341340
}
342341

@@ -374,20 +373,9 @@ void Application::loadDynamicShortcuts() {
374373
}
375374

376375
void Application::offerPolls() const {
377-
/*
378376
if (isFirstRunCurrentVersion()) {
379-
qApp->showGuiMessage(Notification::Event::GeneralEvent,
380-
{tr("%1 survey").arg(QSL(APP_NAME)),
381-
tr("Please, fill the survey."),
382-
QSystemTrayIcon::MessageIcon::Warning},
383-
{false, true, false},
384-
{tr("Go to survey"), [] {
385-
qApp->web()->openUrlInExternalBrowser(QSL("https://docs.google.com/forms/d/e/"
386-
"1FAIpQLScQ_r_EwM6qojPsIMQHGdnSktU-WGHgporN69mpU-"
387-
"Tvq8y7XQ/viewform?usp=sf_link"));
388-
}});
377+
qApp->web()->openUrlInExternalBrowser(QSL("https://forms.gle/3CZm95W6vrBLfi5K9"));
389378
}
390-
*/
391379
}
392380

393381
void Application::offerChanges() const {

0 commit comments

Comments
 (0)