Skip to content

Commit 075423a

Browse files
committed
Fix obsolete links. Some code refactoring
1 parent 4f2da5a commit 075423a

File tree

7 files changed

+26
-29
lines changed

7 files changed

+26
-29
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ elseif(NOT ENABLE_PLUGINS AND BUILD_PSIMEDIA)
174174
message(FATAL_ERROR "BUILD_PSIMEDIA flag not works without ENABLE_PLUGINS flag.\nPlease enable ENABLE_PLUGINS flag or disable BUILD_PSIMEDIA flag")
175175
endif()
176176

177+
if(ENABLE_PLUGINS AND (NOT EXISTS "${PROJECT_SOURCE_DIR}/plugins/CMakeLists.txt"))
178+
message(FATAL_ERROR "ENABLE_PLUGINS option is enabled but no plugins sources found at ${PROJECT_SOURCE_DIR}/plugins.\nPlease download and copy plguins sources from official repository or disable this option")
179+
endif()
180+
181+
177182
if(WIN32 OR USE_MXE)
178183
set(BUNDLED_IRIS_ALL ON)
179184
endif()

README.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h2>Installation</h2>
5252

5353
<h2>Development</h2>
5454

55-
<p>In 2009 a Psi fork named <a href="https://psi-plus.com/">Psi+</a> was started. Project purposes were: implementation of new features, writing of patches and plugins for transferring them to upstream. As of 2017 all active Psi+ developers have become official Psi developers and now Psi+ is just a development branch of Psi with rolling release development model.</p>
55+
<p>In 2009 a Psi fork named <a href="https://github.com/psi-plus">Psi+</a> was started. Project purposes were: implementation of new features, writing of patches and plugins for transferring them to upstream. As of 2017 all active Psi+ developers have become official Psi developers and now Psi+ is just a development branch of Psi with rolling release development model.</p>
5656

5757
<p>Users who wants to receive new features and bug fixes very quickly may use Psi+ on daily basis. Users who do not care about new trends and prefer constancy may choose Psi as it uses classical development model and its releases are quite rare.</p>
5858

@@ -98,7 +98,7 @@ <h3>Bug reports</h3>
9898

9999
<h3>Beta testing</h3>
100100

101-
<p>As we (intentionally) do not have nor beta versions of Psi, nor daily build builds for it, you are invited to use <a href="https://psi-plus.com/">Psi+ program</a> for suggesting and testing of new features, and for reporting about new bugs (if they happen).</p>
101+
<p>As we (intentionally) do not have nor beta versions of Psi, nor daily build builds for it, you are invited to use <a href="https://github.com/psi-plus">Psi+ program</a> for suggesting and testing of new features, and for reporting about new bugs (if they happen).</p>
102102

103103
<h3>Comments and wishes</h3>
104104

@@ -134,7 +134,7 @@ <h2>Main links</h2>
134134
<li><a href="https://github.com/psi-im/plugins">Officially supported plugins</a> (sources)</li>
135135
<li><a href="https://github.com/psi-im/psimedia">Multimedia plugin for audio and video calls</a> (sources)</li>
136136
<li><a href="https://github.com/psi-im/resources">Extra resources</a> (iconsets, sounds, skins, themes, etc.)</li>
137-
<li><a href="https://psi-plus.com/">Psi+ project</a> (official website)</li>
137+
<li><a href="https://psi-im.org/">Psi+ project</a> (official website)</li>
138138
<li><a href="https://github.com/psi-plus/psi-plus-snapshots">Psi+ snapshots</a> (sources)</li>
139139
<li><a href="https://github.com/psi-plus/psi-plus-l10n">Psi+ translations</a> (sources)</li>
140140
</ul>
@@ -149,7 +149,7 @@ <h2>Packages and installers</h2>
149149
<li><a href="https://sourceforge.net/projects/psiplus/files/macOS/tehnick/">Psi+ builds for macOS</a></li>
150150
<li><a href="https://depot.haiku-os.org/psi_plus">Psi+ package in Haiku</a></li>
151151
<li><a href="https://launchpad.net/~psi-plus/+archive/ubuntu/ppa">Official PPA for Ubuntu and distros based on it</a> (daily builds)</li>
152-
<li><a href="http://notesalexp.org/index-old.html">Unofficial PPA for Debian and Ubuntu</a> (see <a href="https://psi-plus.com/wiki/en:debian#nightly_builds">notes</a> about using it)</li>
152+
<li><a href="http://notesalexp.org/index-old.html">Unofficial PPA for Debian and Ubuntu</a></li>
153153
<li><a href="https://software.opensuse.org/package/psi-plus">Unofficial PPA for openSUSE</a> (daily builds)</li>
154154
<li><a href="https://copr.fedorainfracloud.org/coprs/valdikss/psi-plus-snapshots/">Unofficial PPA for Fedora</a> (outdated)</li>
155155
<li><a href="https://repology.org/metapackage/psi-plus/versions">Packages for different Linux distros</a></li>

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ MS Windows users may download official installers and portable builds from [Sour
5050

5151
## Development
5252

53-
In 2009 a Psi fork named [Psi+](https://psi-plus.com/) was started. Project purposes were: implementation of new features, writing of patches and plugins for transferring them to upstream. As of 2017 all active Psi+ developers have become official Psi developers and now Psi+ is just a development branch of Psi with rolling release development model.
53+
In 2009 a Psi fork named [Psi+](https://github.com/psi-plus) was started. Project purposes were: implementation of new features, writing of patches and plugins for transferring them to upstream. As of 2017 all active Psi+ developers have become official Psi developers and now Psi+ is just a development branch of Psi with rolling release development model.
5454

5555
Users who wants to receive new features and bug fixes very quickly may use Psi+ on daily basis. Users who do not care about new trends and prefer constancy may choose Psi as it uses classical development model and its releases are quite rare.
5656

@@ -90,7 +90,7 @@ If you found a bug please report about it in our [Bug Tracker](https://github.co
9090

9191
### Beta testing
9292

93-
As we (intentionally) do not have nor beta versions of Psi, nor daily build builds for it, you are invited to use [Psi+ program](https://psi-plus.com/) for suggesting and testing of new features, and for reporting about new bugs (if they happen).
93+
As we (intentionally) do not have nor beta versions of Psi, nor daily build builds for it, you are invited to use [Psi+ program](https://github.com/psi-plus) for suggesting and testing of new features, and for reporting about new bugs (if they happen).
9494

9595
### Comments and wishes
9696

@@ -125,7 +125,7 @@ If you want to donate some money for development of Psi and Psi+ project, it is
125125
* [Officially supported plugins](https://github.com/psi-im/plugins) (sources)
126126
* [Multimedia plugin for audio and video calls](https://github.com/psi-im/psimedia) (sources)
127127
* [Extra resources](https://github.com/psi-im/resources) (iconsets, sounds, skins, themes, etc.)
128-
* [Psi+ project](https://psi-plus.com/) (official website)
128+
* [Psi+ project](https://psi-im.org/) (official website)
129129
* [Psi+ snapshots](https://github.com/psi-plus/psi-plus-snapshots) (sources)
130130
* [Psi+ translations](https://github.com/psi-plus/psi-plus-l10n) (sources)
131131

@@ -138,11 +138,11 @@ If you want to donate some money for development of Psi and Psi+ project, it is
138138
* [Psi+ builds for macOS](https://sourceforge.net/projects/psiplus/files/macOS/tehnick/)
139139
* [Psi+ package in Haiku](https://depot.haiku-os.org/psi_plus)
140140
* [Official PPA for Ubuntu and distros based on it](https://launchpad.net/~psi-plus/+archive/ubuntu/ppa) (daily builds)
141-
* [Unofficial PPA for Debian and Ubuntu](http://notesalexp.org/index-old.html) (see [notes](https://psi-plus.com/wiki/en:debian#nightly_builds) about using it)
141+
* [Unofficial PPA for Debian and Ubuntu](http://notesalexp.org/index-old.html)
142142
* [Unofficial PPA for openSUSE](https://software.opensuse.org/package/psi-plus) (daily builds)
143143
* [Unofficial PPA for Fedora](https://copr.fedorainfracloud.org/coprs/valdikss/psi-plus-snapshots/) (outdated)
144144
* [Psi package for Arch Linux](https://archlinux.org/packages/extra/x86_64/psi/)
145-
* [Unofficial Psi+ AUR package](https://aur.archlinux.org/packages/psi-plus)
145+
* [Unofficial Psi+ AUR package](https://aur.archlinux.org/packages/psi-plus)
146146
* [Packages for different Linux distros](https://repology.org/metapackage/psi-plus/versions)
147147

148148
## Extra links

linux/psi-plus.appdata.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
<p>Psi+ is a development branch of Psi with rolling release development model. Users who wants to receive new features and bug fixes very quickly may use Psi+ on daily basis. Users who do not care about new trends and prefer constancy may choose Psi as it uses classical development model and its releases are quite rare.</p>
3131
<p xml:lang="ru">Psi+ — это ветка разработки клиента Psi, для которой используется модель разработки с плавающим релизом. Пользователи, которые хотят быстро получать новые функции и исправления ошибок, могут использовать Psi+ на ежедневной основе. Пользователи, которые не заботятся о новых тенденциях и предпочитают постоянство, могут выбрать Psi, поскольку он использует классическую модель разработки и его выпуски довольно редки.</p>
3232
</description>
33-
<url type="homepage">https://psi-plus.com/</url>
33+
<url type="homepage">https://psi-im.org/</url>
3434
<url type="bugtracker">https://github.com/psi-im/psi/issues</url>
3535
<screenshots>
3636
<screenshot type="default">
37-
<image>https://psi-plus.com/wi/psiplus_screen_linux_big.png</image>
37+
<image>https://psi-im.org/wiki/lib/exe/fetch.php?cache=&media=psiplus_screen_linux_big.png</image>
3838
</screenshot>
3939
</screenshots>
4040
<content_rating type="oars-1.1">

src/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,15 @@ elseif(IS_WEBENGINE)
188188
set(PSI_VER_SUFFIX ", webengine")
189189
endif()
190190

191+
set(CLIENT_CAPS_NODE "https://psi-im.org")
191192
if( NOT PSI_PLUS )
192193
set(CLIENT_NAME "Psi")
193194
set(CLIENT_SNAME "psi")
194-
set(CLIENT_CAPS_NODE "https://psi-im.org")
195195
set(PSILOGO_PREFIX "")
196196
set(MAIN_ICON "psimain.png")
197197
else()
198198
set(CLIENT_NAME "Psi+")
199199
set(CLIENT_SNAME "psi+")
200-
set(CLIENT_CAPS_NODE "https://psi-plus.com")
201200
set(PSILOGO_PREFIX "psiplus/")
202201
set(MAIN_ICON "psiplus_icon.png")
203202
endif()

src/mainwin.cpp

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void MainWin::Private::registerActions()
225225
IconAction *action = getAction(aName);
226226
mainWin->connect(action, &IconAction::triggered, mainWin, [this, id](bool) {
227227
QList<IconAction *> l = statusGroup->findChildren<IconAction *>();
228-
for (IconAction *action : l) {
228+
for (IconAction *action : std::as_const(l)) {
229229
auto it = statusActions.constFind(action);
230230
action->setChecked(it != statusActions.constEnd() && *it == id);
231231
}
@@ -927,7 +927,7 @@ void MainWin::buildOptionsMenu()
927927
d->updateMenu(actions, helpMenu);
928928

929929
auto pluginActions = PluginManager::instance()->globalAboutMenuActions();
930-
for (auto a : pluginActions) {
930+
for (auto a : std::as_const(pluginActions)) {
931931
helpMenu->addAction(a);
932932
}
933933

@@ -998,16 +998,15 @@ void MainWin::actReadmeActivated()
998998
void MainWin::actOnlineWikiActivated()
999999
{
10001000
DesktopUtil::openUrl(
1001+
#ifdef PSI_PLUS
1002+
"https://psi-im.org/wiki"
1003+
#else
10011004
"https://github.com/psi-im/psi/wiki"
1005+
#endif
10021006
);
10031007
}
10041008

1005-
void MainWin::actOnlineHomeActivated()
1006-
{
1007-
DesktopUtil::openUrl(
1008-
"https://psi-im.org"
1009-
);
1010-
}
1009+
void MainWin::actOnlineHomeActivated() { DesktopUtil::openUrl("https://psi-im.org"); }
10111010

10121011
void MainWin::actOnlineForumActivated() { DesktopUtil::openUrl("https://groups.google.com/forum/#!forum/psi-users"); }
10131012

@@ -1021,12 +1020,7 @@ void MainWin::actJoinPsiMUCActivated()
10211020
account->actionJoin("[email protected]");
10221021
}
10231022

1024-
void MainWin::actBugReportActivated()
1025-
{
1026-
DesktopUtil::openUrl(
1027-
"https://github.com/psi-im/psi/issues"
1028-
);
1029-
}
1023+
void MainWin::actBugReportActivated() { DesktopUtil::openUrl("https://github.com/psi-im/psi/issues"); }
10301024

10311025
void MainWin::actAboutActivated()
10321026
{
@@ -1314,7 +1308,7 @@ void MainWin::decorateButton(int status)
13141308
{
13151309
// update the 'change status' buttons
13161310
QList<IconAction *> l = d->statusGroup->findChildren<IconAction *>();
1317-
for (IconAction *action : l) {
1311+
for (IconAction *action : std::as_const(l)) {
13181312
action->setChecked(d->statusActions[action] == status);
13191313
}
13201314

src/src.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ add_definitions(
22
-DFILETRANSFER
33
-DGROUPCHAT
44
-DWHITEBOARDING
5-
-DNEWCONTACTLIST
65
-DHAVE_PGPUTIL
76
-DPSI_PLUGINS
87
-DUSE_PEP

0 commit comments

Comments
 (0)