diff --git a/ChangeLog b/ChangeLog index 9066290..7972f11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +qcma (0.3.6) unstable; urgency=low + + * Fix stupid bug with function scope. + + -- codestation Thu, 11 Oct 2014 00:00:00 -0000 + qcma (0.3.5) unstable; urgency=low * Added selector to override the default protocol version. diff --git a/qcma_common.pri b/qcma_common.pri index 119bfa5..807ea50 100644 --- a/qcma_common.pri +++ b/qcma_common.pri @@ -6,7 +6,7 @@ QT += core network sql -VERSION = 0.3.5 +VERSION = 0.3.6 TEMPLATE = app diff --git a/rpmbuild/qcma-fedora.spec b/rpmbuild/qcma-fedora.spec index db918d0..f28708e 100644 --- a/rpmbuild/qcma-fedora.spec +++ b/rpmbuild/qcma-fedora.spec @@ -6,7 +6,7 @@ Name: qcma Summary: PSVita Content Manager Assistant License: GPL-3.0 Release: 1 -Version: 0.3.5 +Version: 0.3.6 URL: https://github.com/codestation/qcma Source: https://github.com/codestation/qcma.git Group: Productivity/File utilities diff --git a/rpmbuild/qcma-openSUSE.spec b/rpmbuild/qcma-openSUSE.spec index f9cbd6d..eac6a53 100644 --- a/rpmbuild/qcma-openSUSE.spec +++ b/rpmbuild/qcma-openSUSE.spec @@ -6,7 +6,7 @@ Name: qcma Summary: PSVita Content Manager Assistant License: GPL-3.0 Release: 1 -Version: 0.3.5 +Version: 0.3.6 URL: https://github.com/codestation/qcma Source: https://github.com/codestation/qcma.git Group: Productivity/File utilities diff --git a/src/capability.cpp b/src/capability.cpp index f8638da..12fa0cd 100644 --- a/src/capability.cpp +++ b/src/capability.cpp @@ -18,6 +18,7 @@ */ #include "capability.h" +#include "cmautils.h" #include #include @@ -41,7 +42,7 @@ bool DeviceCapability::exchangeInfo(vita_device_t *device) } QString hostname = QHostInfo::localHostName(); - int protocol_version = getProtocolVersion(); + int protocol_version = ::getVitaProtocolVersion(); const initiator_info_t *pc_info = VitaMTP_Data_Initiator_New(hostname.toUtf8().data(), protocol_version); // Next, we send the client's (this program) info (discard the const here) diff --git a/src/cmabroadcast.cpp b/src/cmabroadcast.cpp index ca67941..010a593 100644 --- a/src/cmabroadcast.cpp +++ b/src/cmabroadcast.cpp @@ -86,7 +86,7 @@ void CmaBroadcast::readPendingDatagrams() void CmaBroadcast::setAvailable() { QMutexLocker locker(&mutex); - int protocol_version = getProtocolVersion(); + int protocol_version = ::getVitaProtocolVersion(); reply.clear(); reply.insert(0, broadcast_reply @@ -100,7 +100,7 @@ void CmaBroadcast::setAvailable() void CmaBroadcast::setUnavailable() { QMutexLocker locker(&mutex); - int protocol_version = QSettings().value("protocolVersion", VITAMTP_PROTOCOL_MAX_VERSION).toInt(); + int protocol_version = ::getVitaProtocolVersion(); reply.clear(); reply.insert(0, broadcast_reply diff --git a/src/cmautils.cpp b/src/cmautils.cpp index 7e49530..284ffd5 100644 --- a/src/cmautils.cpp +++ b/src/cmautils.cpp @@ -186,7 +186,7 @@ QString readable_size(qint64 size, bool use_gib) return QString().setNum(size_f,'f',2) + " " + unit; } -int getProtocolVersion() +int getVitaProtocolVersion() { bool useCustom = QSettings().value("useCustomProtocol").toBool(); if(useCustom) diff --git a/src/cmautils.h b/src/cmautils.h index e48d6a3..0b3a773 100644 --- a/src/cmautils.h +++ b/src/cmautils.h @@ -49,6 +49,6 @@ bool removeRecursively(const QString &path); QString readable_size(qint64 size, bool use_gib = false); bool getDiskSpace(const QString &dir, quint64 *free, quint64 *total); QByteArray getThumbnail(const QString &path, DataType type, metadata_t *metadata); -int getProtocolVersion(); +int getVitaProtocolVersion(); #endif // UTILS_H diff --git a/windows/qcma.nsi b/windows/qcma.nsi index d1319de..e2eb49e 100644 --- a/windows/qcma.nsi +++ b/windows/qcma.nsi @@ -10,7 +10,7 @@ !define PRODUCT_EXE_NAME "qcma.exe" !define PRODUCT_VERSION_MAJOR 0 !define PRODUCT_VERSION_MINOR 3 -!define PRODUCT_VERSION_BUILD 5 +!define PRODUCT_VERSION_BUILD 6 !define PRODUCT_PUBLISHER "codestation" !define PRODUCT_WEB_SITE "https://github.com/codestation/qcma" !define HELPURL "https://github.com/xiannox/qcma/wiki"