summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorheiko tietze <tietze.heiko@gmail.com>2018-11-06 11:34:10 +0100
committerHeiko Tietze <tietze.heiko@gmail.com>2018-11-08 15:35:00 +0100
commit9fb7c77e5cfc5add880aee18e36a851b8929137a (patch)
treeeddc9cbae9b30af6a08bb81321c12c71ede6f947 /sfx2
parent1fcc999a0cf530161de811fcb11177c61f59f44a (diff)
tdf#120642 - GetInvoled update
UNO command is used now and period set to 180 days Change-Id: Ib9950e75a5288e242c5a9a5c5a6a0c1dbb277e2b Reviewed-on: https://gerrit.libreoffice.org/62949 Tested-by: Jenkins Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com> Tested-by: Heiko Tietze <tietze.heiko@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index a5e2cb63a457..8463b2366fbb 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -1219,7 +1219,7 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
// inform about the community involvement
const sal_Int64 nLastShown = officecfg::Setup::Product::LastTimeGetInvolvedShown::get();
const sal_Int64 nNow = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count();
- const sal_Int64 nPeriodSec(60 * 60 * 24 * 30); // 30 days in seconds
+ const sal_Int64 nPeriodSec(60 * 60 * 24 * 180); // 180 days in seconds
bool bUpdateLastTimeGetInvolvedShown = false;
if (nLastShown == 0)
@@ -1370,14 +1370,7 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
IMPL_LINK_NOARG(SfxViewFrame, GetInvolvedHandler, Button*, void)
{
- try
- {
- OUString sURL("https://hub.libreoffice.org/joinus/?LOlocale=" + utl::ConfigManager::getUILocale());
- sfx2::openUriExternally(sURL, false);
- }
- catch (const Exception&)
- {
- }
+ GetDispatcher()->Execute(SID_GETINVOLVED);
}
IMPL_LINK(SfxViewFrame, SwitchReadOnlyHandler, Button*, pButton, void)