mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
- Fixed crash when closing the main window without the setting "Minimize to Tray Icon"
- Renamed the setting "Do not Minimize to Tray Icon" to "Minimize to Tray Icon" and fixed wrong usage Please check your setting! - Updated english translation git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6557 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e763f46aee
commit
c4c5eb5399
@ -1012,30 +1012,26 @@ void MainWindow::displayErrorMessage(int /*a*/,int /*b*/,const QString& error_ms
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent *e)
|
||||
{
|
||||
static bool firstTime = true;
|
||||
e->ignore();
|
||||
|
||||
if(!Settings->getCloseToTray())
|
||||
if (Settings->getCloseToTray())
|
||||
{
|
||||
if (trayIcon->isVisible()) {
|
||||
/*****
|
||||
static bool firstTime = true;
|
||||
|
||||
if (firstTime)
|
||||
{
|
||||
/*****
|
||||
QMessageBox::information(this, tr("RetroShare System tray"),
|
||||
tr("Application will continue running. Quit using context menu in the system tray"));
|
||||
*****/
|
||||
QMessageBox::information(this, tr("RetroShare System tray"), tr("Application will continue running. Quit using context menu in the system tray"));
|
||||
firstTime = false;
|
||||
}
|
||||
*****/
|
||||
hide();
|
||||
e->ignore();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
rsicontrol->rsGlobalShutDown();
|
||||
rApp->quit();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
doQuit();
|
||||
}
|
||||
|
||||
void MainWindow::updateMenu()
|
||||
|
@ -11,7 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>MainWindow</string>
|
||||
<string notr="true">MainWindow</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
|
@ -69,7 +69,7 @@ bool GeneralPage::save(QString &/*errmsg*/)
|
||||
{
|
||||
Settings->setStartMinimized(ui.checkStartMinimized->isChecked());
|
||||
Settings->setValue("doQuit", ui.checkQuit->isChecked());
|
||||
Settings->setCloseToTray(ui.checkClosetoTray->isChecked());
|
||||
Settings->setCloseToTray(ui.checkCloseToTray->isChecked());
|
||||
|
||||
#ifdef Q_WS_WIN
|
||||
Settings->setRunRetroshareOnBoot(ui.chkRunRetroshareAtSystemStartup->isChecked(), ui.chkRunRetroshareAtSystemStartupMinimized->isChecked());
|
||||
@ -117,7 +117,7 @@ void GeneralPage::load()
|
||||
ui.checkStartMinimized->setChecked(Settings->getStartMinimized());
|
||||
ui.checkQuit->setChecked(Settings->value("doQuit", false).toBool());
|
||||
|
||||
ui.checkClosetoTray->setChecked(Settings->getCloseToTray());
|
||||
ui.checkCloseToTray->setChecked(Settings->getCloseToTray());
|
||||
|
||||
ui.spinBox->setValue(Settings->getMaxTimeBeforeIdle());
|
||||
|
||||
|
@ -32,9 +32,6 @@
|
||||
<property name="text">
|
||||
<string>Start minimized</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
@ -100,12 +97,9 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QCheckBox" name="checkClosetoTray">
|
||||
<widget class="QCheckBox" name="checkCloseToTray">
|
||||
<property name="text">
|
||||
<string>Do not Minimize to Tray Icon</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
<string>Minimize to Tray Icon</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -266,12 +266,12 @@ void RshareSettings::setStartMinimized(bool startMinimized)
|
||||
|
||||
bool RshareSettings::getCloseToTray()
|
||||
{
|
||||
return value("ClosetoTray", false).toBool();
|
||||
return value("CloseToTray", true).toBool();
|
||||
}
|
||||
|
||||
void RshareSettings::setCloseToTray(bool closeToTray)
|
||||
{
|
||||
setValue("ClosetoTray", closeToTray);
|
||||
setValue("CloseToTray", closeToTray);
|
||||
}
|
||||
|
||||
/** Setting for Notify / Chat and NewsFeeds **/
|
||||
|
@ -5359,10 +5359,6 @@ p, li { white-space: pre-wrap; }
|
||||
<source>Local network</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Welcome to RetroShare's group chat.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Paste RetroShare Link</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -5399,6 +5395,10 @@ p, li { white-space: pre-wrap; }
|
||||
<source> <h1><img width="32" src=":/images/64px_help.png">&nbsp;&nbsp;Friends</h1> <p>The Friends tab shows...your friends: the list of persons you have accepted to connect to. </p> <p>You can group friends together to allow a finer level of information access, for instance to only allow some friends to see some files.</p> <p>On the right, you will find 3 useful tabs: <ul> <li>Broadcast sends messages to all connected friends at once</li> <li>Local Network shows the network around you, including friends of your friends</li> <li>Keyring contains keys you collected, mostly forwarded to you by your friends</li> </ul> </p> </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Retroshare broadcast chat: messages are sent to all connected friends.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GamesDialog</name>
|
||||
@ -5771,10 +5771,6 @@ Fill in your PGP password when asked, to sign your new key.</source>
|
||||
<source>Do not show the Quit RetroShare MessageBox</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Do not Minimize to Tray Icon</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Auto Login</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -5819,6 +5815,10 @@ Fill in your PGP password when asked, to sign your new key.</source>
|
||||
<source>General</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Minimize to Tray Icon</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GetStartedDialog</name>
|
||||
@ -5994,49 +5994,6 @@ p, li { white-space: pre-wrap; }
|
||||
<source>RetroShare Support</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add ChatServer to access Forums</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add ChatServer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'Sans'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'MS Shell Dlg 2'; font-size:12pt;">No friends? Add ChatServer to access the forum and chat with new people. Click on the Button to start the process.</span></p>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'MS Shell Dlg 2'; font-size:12pt;">Just paste your certificat on the RetroShare key Text area. (Your key was already copied) </span></p>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'MS Shell Dlg 2'; font-size:12pt;">After enter Captcha code and validate, copy the ChatServer key.</span></p>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'MS Shell Dlg 2'; font-size:12pt;">Then continue the process.</span></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>RetroShare</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Sorry, create certificate failed</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Your Cert is copied to Clipboard, paste it to next opened web page.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Copy the returned key after validating the captcha code.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Next click continue button.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Is ChatServer key copied.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>GraphFrame</name>
|
||||
@ -7566,10 +7523,6 @@ p, li { white-space: pre-wrap; }
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<source>MainWindow</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add Friend</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -8212,7 +8165,11 @@ Do you want to save message ?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Distant peer (PGP key: %1)</source>
|
||||
<source><html><head/><body><p>Cryptographically sign message to distant peers. This is prevents intermediate peers to spoof your identity.</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Distant peer (name: %2, PGP key: %1)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
@ -8270,6 +8227,18 @@ Do you want to save message ?</source>
|
||||
<source>Message</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Distant messages:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source><html><head/><body><p align="justify">The link below allows people in the network to send encrypted messages to you, using tunnels. To do that, they need your public PGP key, which they will get using the Retroshare discovery system. </p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Accept encrypted distant messages from everyone</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MessageToaster</name>
|
||||
@ -8798,7 +8767,27 @@ Do you want to save message ?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source> <h1><img width="32" src=":/images/64px_help.png">&nbsp;&nbsp;Messages</h1> <p>Messages are like e-mail: you send/receive them from your friends when both of you are connected.</p> <p>Some additional features allow to exchange data in messages: you can recommend files to your friends, or recommend friends to be for other friends to streathen your network.</p> </source>
|
||||
<source>Click to sort by signature</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source> <h1><img width="32" src=":/images/64px_help.png">&nbsp;&nbsp;Messages</h1> <p>Messages are like <b>e-mail</b>: you send/receive them from your friends when both of you are connected.</p> <p>It is also possible to send messages to non friends, using tunnels. Such messages are always encrypted. It is recommended to cryptographically sign distant messages, as a proof of your identity, using the <img width="16" src=":/images/stock_signature_ok.png"/> button in the message composer window. Distant messages are not guarrantied to arrive, since this requires the distant peer to accept them (You need yourself to switch this on in Config-Messages).</p> <p>Some additional features allow you to exchange data in messages: you may recommend files to your friends by pasting file links, or recommend friends-to-be to other friends, in order to streathen your network.</p> </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This message is encrypted. Right click to decrypt it.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This message was signed and the signature checks</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This message was signed but the signature doesn't check</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This message is not encrypted. Cannot decrypt!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
|
Loading…
Reference in New Issue
Block a user