mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 04:14:27 -04:00
Fixed compile on Windows
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7194 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e2c8c6e141
commit
a4b54e1021
2 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ template<uint32_t ID_SIZE_IN_BYTES,bool UPPER_CASE,uint32_t UNIQUE_IDENTIFIER> c
|
||||||
this->bytes[i] = temp.toByteArray()[i];
|
this->bytes[i] = temp.toByteArray()[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void clear() { bzero(bytes,SIZE_IN_BYTES) ; }
|
inline void clear() { memset(bytes,0,SIZE_IN_BYTES) ; }
|
||||||
|
|
||||||
// Converts to a std::string using cached value.
|
// Converts to a std::string using cached value.
|
||||||
//
|
//
|
||||||
|
|
|
@ -550,7 +550,7 @@ bool RshareSettings::getRetroShareProtocol()
|
||||||
QSettings retroshare("HKEY_CLASSES_ROOT\\retroshare", QSettings::NativeFormat);
|
QSettings retroshare("HKEY_CLASSES_ROOT\\retroshare", QSettings::NativeFormat);
|
||||||
if (retroshare.contains("Default")) {
|
if (retroshare.contains("Default")) {
|
||||||
/* Check profile */
|
/* Check profile */
|
||||||
if (retroshare.value("Profile").toString().toStdString() == rsPeers->getOwnId()) {
|
if (retroshare.value("Profile").toString().toStdString() == rsPeers->getOwnId().toStdString()) {
|
||||||
/* Check app path */
|
/* Check app path */
|
||||||
QSettings command("HKEY_CLASSES_ROOT\\retroshare\\shell\\open\\command", QSettings::NativeFormat);
|
QSettings command("HKEY_CLASSES_ROOT\\retroshare\\shell\\open\\command", QSettings::NativeFormat);
|
||||||
if (command.value("Default").toString() == getAppPathForProtocol()) {
|
if (command.value("Default").toString() == getAppPathForProtocol()) {
|
||||||
|
@ -588,7 +588,7 @@ bool RshareSettings::setRetroShareProtocol(bool value)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
retroshare.setValue("URL Protocol", "");
|
retroshare.setValue("URL Protocol", "");
|
||||||
retroshare.setValue("Profile", QString::fromStdString(rsPeers->getOwnId()));
|
retroshare.setValue("Profile", QString::fromStdString(rsPeers->getOwnId().toStdString()));
|
||||||
|
|
||||||
QSettings command("HKEY_CLASSES_ROOT\\retroshare\\shell\\open\\command", QSettings::NativeFormat);
|
QSettings command("HKEY_CLASSES_ROOT\\retroshare\\shell\\open\\command", QSettings::NativeFormat);
|
||||||
command.setValue("Default", getAppPathForProtocol());
|
command.setValue("Default", getAppPathForProtocol());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue