From 49b3fbab5866109be87933346df1e478edd12402 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Fri, 13 Jul 2018 18:49:48 -0400 Subject: [PATCH] Source typo fix minor typo in function saveIfNeccessary() to saveIfNecessary() --- src/Gui/DownloadItem.cpp | 6 +++--- src/Gui/DownloadItem.h | 2 +- src/Gui/DownloadManager.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Gui/DownloadItem.cpp b/src/Gui/DownloadItem.cpp index 55ba0313f9..4434480943 100644 --- a/src/Gui/DownloadItem.cpp +++ b/src/Gui/DownloadItem.cpp @@ -133,7 +133,7 @@ void AutoSaver::changeOccurred() m_firstChange.start(); if (m_firstChange.elapsed() > MAXWAIT) { - saveIfNeccessary(); + saveIfNecessary(); } else { m_timer.start(AUTOSAVE_IN, this); } @@ -142,13 +142,13 @@ void AutoSaver::changeOccurred() void AutoSaver::timerEvent(QTimerEvent *event) { if (event->timerId() == m_timer.timerId()) { - saveIfNeccessary(); + saveIfNecessary(); } else { QObject::timerEvent(event); } } -void AutoSaver::saveIfNeccessary() +void AutoSaver::saveIfNecessary() { if (!m_timer.isActive()) return; diff --git a/src/Gui/DownloadItem.h b/src/Gui/DownloadItem.h index 2503f2ca0c..b032a832fb 100644 --- a/src/Gui/DownloadItem.h +++ b/src/Gui/DownloadItem.h @@ -73,7 +73,7 @@ Q_OBJECT public: AutoSaver(QObject *parent); ~AutoSaver(); - void saveIfNeccessary(); + void saveIfNecessary(); public Q_SLOTS: void changeOccurred(); diff --git a/src/Gui/DownloadManager.cpp b/src/Gui/DownloadManager.cpp index 98b767d34e..0cc77d3e1a 100644 --- a/src/Gui/DownloadManager.cpp +++ b/src/Gui/DownloadManager.cpp @@ -91,7 +91,7 @@ DownloadManager::DownloadManager(QWidget *parent) DownloadManager::~DownloadManager() { m_autoSaver->changeOccurred(); - m_autoSaver->saveIfNeccessary(); + m_autoSaver->saveIfNecessary(); if (m_iconProvider) delete m_iconProvider; delete ui;