From e2110e73bac642599e8b8fbc90025c8325f4160d Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 3 Jul 2021 20:03:43 +0200 Subject: [PATCH] Fix typos found via `codespell --skip .git -w` --- README.md | 2 +- ffmpeglauncher.cpp | 2 +- playerwatcher.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5cfa18e..b0c6a11 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,6 @@ should start ffmpeg automatically. ## Build instructions The application depends on the c++utilities library. It is built in the same way as c++utilities. -The following Qt modules are requried (version 5.6 or higher): core dbus +The following Qt modules are required (version 5.6 or higher): core dbus diff --git a/ffmpeglauncher.cpp b/ffmpeglauncher.cpp index d1716c1..0666f0a 100644 --- a/ffmpeglauncher.cpp +++ b/ffmpeglauncher.cpp @@ -157,7 +157,7 @@ void FfmpegLauncher::nextSong() } } } catch (const std::ios_base::failure &failure) { - cerr << "Warning: Can't parse info.ini because an IO error occured: " << failure.what() << endl; + cerr << "Warning: Can't parse info.ini because an IO error occurred: " << failure.what() << endl; } } // determine target name/path diff --git a/playerwatcher.cpp b/playerwatcher.cpp index d23d8a5..f6f6026 100644 --- a/playerwatcher.cpp +++ b/playerwatcher.cpp @@ -38,11 +38,11 @@ PlayerWatcher::PlayerWatcher(const QString &appName, bool ignorePlaybackStatus, if (!connect(m_mediaPlayerServiceWatcher, &QDBusServiceWatcher::serviceOwnerChanged, this, &PlayerWatcher::serviceOwnerChanged)) { cout << "Warning: Unable to connect \"serviceOwnerChanged\" signal of service watcher." << endl; } - // The code below does not work anymore with the newest version of Spotify. + // The code below might not work with some players: //if(!connect(m_propertiesInterface, &OrgFreedesktopDBusPropertiesInterface::PropertiesChanged, this, &PlayerWatcher::propertiesChanged)) { // cout << "Warning: Unable to connect \"PropertiesChanged\" signal of properties interface." << endl; //} - // However, the following works: + // However, the following seems to work always: if (!QDBusConnection::sessionBus().connect(m_mediaPlayerInterfaceName, QStringLiteral("/org/mpris/MediaPlayer2"), QStringLiteral("org.freedesktop.DBus.Properties"), QStringLiteral("PropertiesChanged"), this, SLOT(propertiesChanged()))) { cout << "Warning: Unable to connect \"PropertiesChanged\" signal of properties interface." << endl;