quassel.git
8 years agoStore the channel keys in CoreNetwork again
Bas Pape [Thu, 24 Sep 2015 19:15:49 +0000 (21:15 +0200)]
Store the channel keys in CoreNetwork again

The refactoring from 3146ad0 (and e0781ee) was not a true refactoring as
it changed behaviour: CoreIrcChannels (as opposed to CoreNetworks) are
ephemeral, which meant disconnecting or parting lost the channel key.
Keys are still kept by the channel's cipher, but synced from/to its network when
the constructor/destructor is called.

Fixes #1248

8 years agoDisable checkbox if no DockManager is present
Bas Pape [Thu, 24 Sep 2015 18:32:13 +0000 (20:32 +0200)]
Disable checkbox if no DockManager is present

This gets rid of the stray debug message introduced by 0bf9227 and adds
some visual feedback on the settingspage instead.

8 years agoRemove forward declarations in multilineedit.h
Bas Pape [Thu, 24 Sep 2015 18:29:08 +0000 (20:29 +0200)]
Remove forward declarations in multilineedit.h

TabCompleter isn't used and QKeyEvent's header is included (and required
for inlined functions).

8 years agoRemove the tabcompletion space at end of text
Bas Pape [Thu, 24 Sep 2015 18:11:48 +0000 (20:11 +0200)]
Remove the tabcompletion space at end of text

The "add space after nick when completing mid-sentence" option
introduced by 84381d6 left the space even if it turned out to be at
the end. Remove it again if the text hasn't changed when sending the
text.

8 years agoFixed english in ircchannel.cpp
Petr Bena [Tue, 22 Sep 2015 08:01:50 +0000 (10:01 +0200)]
Fixed english in ircchannel.cpp

Mostly only comments, it hurt my eyes while reading it :P

8 years agoClean up
Petr Bena [Mon, 21 Sep 2015 12:19:33 +0000 (14:19 +0200)]
Clean up

Removed extra semicolon and resolved some compiler warnings

8 years agoFix build with Qt-5.5
Armin K [Sat, 2 May 2015 21:04:53 +0000 (23:04 +0200)]
Fix build with Qt-5.5

http://code.qt.io/cgit/qt/qtbase.git/commit/?id=ebef2ad1360c80ad62de5f4a1c4e7e4051725c1c

8 years agoKeep _wantReconnect set to true by default instead of false
Michael Marley [Sat, 13 Jun 2015 21:38:29 +0000 (17:38 -0400)]
Keep _wantReconnect set to true by default instead of false

Previously _wantReconnect was set to false by default (unless the
client was actually disconnected).  If the disconnect() signal was
fired without any other signals (socketError(), for example), this
would cause the client to not reconnect.  This seems to be
happening rather often with Qt5 client builds because a vast
majority of the time when I restart my core (or the entire core
server), the Qt5 clients do not reconnect.  This patch keeps
_wantReconnect set to true whenever the client is connected so that
problem will not occur anymore.  Disconnecting manually will set
it back to false so that the client won't try to reconnect after
a manual disconnect.

8 years agoAdding tag file to the ignore list.
Jason Joyce [Wed, 13 May 2015 01:53:18 +0000 (21:53 -0400)]
Adding tag file to the ignore list.

8 years agoRespect WITH_WEBKIT when defining HAVE_WEBKIT
Deiz [Fri, 8 May 2015 19:37:52 +0000 (15:37 -0400)]
Respect WITH_WEBKIT when defining HAVE_WEBKIT

8 years agoAdding the build folder to the ignore file.
Jason Joyce [Fri, 8 May 2015 02:41:10 +0000 (22:41 -0400)]
Adding the build folder to the ignore file.

8 years agoAdding a gitignore file.
jjoyce [Thu, 7 May 2015 20:46:27 +0000 (16:46 -0400)]
Adding a gitignore file.

8 years agoPython PEP8 cleanup of macosx_makebundle.py
jjoyce [Thu, 7 May 2015 19:03:02 +0000 (15:03 -0400)]
Python PEP8 cleanup of macosx_makebundle.py

8 years agoPython PEP8 cleanup of macos_DeployApp.py
jjoyce [Thu, 7 May 2015 18:46:41 +0000 (14:46 -0400)]
Python PEP8 cleanup of macos_DeployApp.py

8 years agoFix SQL errors caused by sender insertion from multiple threads
Michael Marley [Tue, 5 May 2015 01:27:14 +0000 (21:27 -0400)]
Fix SQL errors caused by sender insertion from multiple threads

At least on Qt5, the QSqlQuery.lastQuery() function, when used with
prepared queries, returns the EXECUTE statement and not the actual
query.  Qt then attempts to PREPARE this statement, which causes
a syntax error, aborting the transaction and dropping the message that
was to be inserted.  A better idea would be to execute the named
prepared query directly, which avoids the problem.

8 years agoAdd cmdline options for SSL certificate/key paths.
Daniel Schaal [Fri, 1 May 2015 14:34:22 +0000 (16:34 +0200)]
Add cmdline options for SSL certificate/key paths.

Add cmdline options to core to specify the SSL certificate
and SSL key path, --ssl-cert and --ssl-key respectively.
If not set, the usual path CONFIGDIR/quasselCert.pem
will be used for the cert and the key.

If only the path to the certificate is set, it is assumed
to also contain the key.

8 years agoFix read GIT_HEAD and GIT_DESCRIBE from environment
Alf Gaida [Sat, 25 Apr 2015 17:25:34 +0000 (19:25 +0200)]
Fix read GIT_HEAD and GIT_DESCRIBE from environment

add missed ENV

8 years agoCall socketDisconnected() from socketStateChanged()
Michael Marley [Thu, 23 Apr 2015 22:05:31 +0000 (18:05 -0400)]
Call socketDisconnected() from socketStateChanged()

This makes sure that socketDisconnected() is always called when
Quassel disconnects even if it isn't fully connected yet.
Otherwise, reconnect occasionally fails to work properly.

8 years agoBump version for release 0.12.2
Manuel Nickschas [Thu, 23 Apr 2015 20:47:17 +0000 (22:47 +0200)]
Bump version for release

8 years agoUpdate ChangeLog
Manuel Nickschas [Thu, 23 Apr 2015 20:46:48 +0000 (22:46 +0200)]
Update ChangeLog

8 years agoMove config file migration after QCoreApplication instantiation
Manuel Nickschas [Thu, 23 Apr 2015 20:34:07 +0000 (22:34 +0200)]
Move config file migration after QCoreApplication instantiation

Seems like Kdelibs4ConfigMigrator accesses QCoreApplication::arguments()
now, leading to a warning on startup if QCA hasn't been instantiated yet.

8 years agoExecute initDbSession() on DB reconnects
Michael Marley [Thu, 23 Apr 2015 12:46:43 +0000 (08:46 -0400)]
Execute initDbSession() on DB reconnects

Previously, the initDbSession() function would only be run on the
initial connect.  Since the initDbSession() code in PostgreSQL is
used to fix the CVE-2013-4422 SQL Injection bug, this means that
Quassel was still vulnerable to that CVE if the PostgreSQL server
is restarted or the connection is lost at any point while Quassel
is running.

This bug also causes the Qt5 psql timezone fix to stop working
after a reconnect.

The fix is to disable Qt's automatic reconnecting, check the
connection status ourselves, and reconnect if necessary, executing
the initDbSession() function afterward.

9 years agoBump version for release 0.12.1
Manuel Nickschas [Tue, 21 Apr 2015 20:41:47 +0000 (22:41 +0200)]
Bump version for release

9 years agoUpdate ChangeLog
Manuel Nickschas [Tue, 21 Apr 2015 20:41:11 +0000 (22:41 +0200)]
Update ChangeLog

9 years agoSet the PostgreSQL session timezone to 'UTC'
Michael Marley [Mon, 20 Apr 2015 16:43:53 +0000 (12:43 -0400)]
Set the PostgreSQL session timezone to 'UTC'

With Qt5, the PostgreSQL driver will transparently convert times
to the database's timezone before inserting.  Because the default
is 'localtime', this causes the local time to be stored in the DB
instead of the UTC time.  This in turn causes the time displayed
in the client to be wrong by the same offset as that timezone's
offset.  To fix the issue, just make sure the PostgreSQL is in the
'UTC' timezone, so the passed UTC time will not be converted.

9 years agoBump version for release 0.12.0
Manuel Nickschas [Wed, 15 Apr 2015 20:58:17 +0000 (22:58 +0200)]
Bump version for release

9 years agoUpdate ChangeLog
Manuel Nickschas [Wed, 15 Apr 2015 20:57:53 +0000 (22:57 +0200)]
Update ChangeLog

9 years agoOutput the CMake version during configuration
Manuel Nickschas [Wed, 15 Apr 2015 20:56:03 +0000 (22:56 +0200)]
Output the CMake version during configuration

This will allow us to quickly see if too old (or sometimes even
too new) CMake versions cause problems for building.

9 years agoUse the Qca-qt5 import target if available
Patrick von Reth [Mon, 16 Mar 2015 10:55:41 +0000 (11:55 +0100)]
Use the Qca-qt5 import target if available

9 years agoMerge pull request #121 from mamarley/unusedcipherfix
Manuel Nickschas [Wed, 15 Apr 2015 18:12:08 +0000 (20:12 +0200)]
Merge pull request #121 from mamarley/unusedcipherfix

Fix compiler warning when compiling without QCA support

9 years agoMerge pull request #120 from mamarley/dbcreatefix
Manuel Nickschas [Thu, 9 Apr 2015 11:53:29 +0000 (13:53 +0200)]
Merge pull request #120 from mamarley/dbcreatefix

Update the schema creation DDL for the new password hashing

9 years agoFix compiler warning when compiling without QCA support 121/head
Michael Marley [Mon, 6 Apr 2015 01:54:36 +0000 (21:54 -0400)]
Fix compiler warning when compiling without QCA support

9 years agoUpdate the schema creation DDL for the new password hashing 120/head
Michael Marley [Mon, 6 Apr 2015 01:35:09 +0000 (21:35 -0400)]
Update the schema creation DDL for the new password hashing

I'm not sure whether this slipped out in a merge or whether I
forgot to add it in the first place, but it should have been part
of commit 5924533c6d0f9777d38c01ed7e1510a55db2b876.  This
completely broke setting up a new Quassel instance from scratch
with 0.12-rc1, but upgrades from previous versions are unaffected.

9 years agoFix typo in PasswordChangeDlg failure message
Daniel Albers [Wed, 25 Mar 2015 12:11:50 +0000 (13:11 +0100)]
Fix typo in PasswordChangeDlg failure message

9 years agoUpdate translations from Transifex
Daniel Albers [Wed, 26 Mar 2014 04:00:33 +0000 (05:00 +0100)]
Update translations from Transifex

  26056 translated messages

Many thanks to:
 - cs: Jaroslav Lichtblau <dragonlord@seznam.cz>
 - da: Jens True <frazzer@hotmail.com>,
       Joe Hansen <joedalton2@yahoo.dk>
 - de: contradictioned <contradictioned@googlemail.com>,
       Felix Kaechele <felix@fetzig.org>,
       Manuel Hoffmann <contradictioned@googlemail.com>,
       Tobias Frei <tobias@freiwuppertal.de>
 - el: Stefanos Sofroniou <inactive+_stefanos_@transifex.com>
 - eo: Tinjo Kohen <tiffypet@yahoo.com>
 - es: Adolfo Jayme Barrientos <fitoschido@ubuntu.com>,
       Jonathan Farnham <jonathan@haitu-yu.com>
 - fi: Lasse Liehu <larso@gmx.com>
 - fr: Vlavv <vlavv2@gmail.com>
 - gl: Miguel Anxo Bouzada <mbouzada@gmail.com>
 - hi: Raju Devidas Vindane <rajuvindane@gmail.com>
 - ko: Sungjin Kang <potopro@gmail.com>
 - mr: Raju Devidas Vindane <rajuvindane@gmail.com>
 - nl: simonphilips <simon.philips@gmail.com>
 - oc: Cédric Valmary <cvalmary@yahoo.fr>
 - pa: A S Alam <apreet.alam@gmail.com>
 - pt_BR: Pedro Araujo <pedroaraujo@colorlesscube.com>
 - ro: Arthur Țițeică <arthur.titeica@gmail.com>
 - sl: Andrej Mernik <andrejm@ubuntu.si>
 - sr: Jovan Jojkić <jovanjojkic@gmail.com>
 - tr: Volkan Gezer <volkangezer@gmail.com>
 - uk: Yuri Chornoivan <yurchor@ukr.net>

9 years agoUpdate quassel.pot
Daniel Albers [Tue, 25 Mar 2014 23:10:11 +0000 (00:10 +0100)]
Update quassel.pot

9 years agoThese two settings keys shouldn't be translated
Lasse Liehu [Tue, 25 Mar 2014 22:53:23 +0000 (00:53 +0200)]
These two settings keys shouldn't be translated

9 years agoMerge pull request #118 from mamarley/randomfix
Manuel Nickschas [Wed, 11 Mar 2015 22:21:29 +0000 (23:21 +0100)]
Merge pull request #118 from mamarley/randomfix

Fix FTBFS on certain older libstdc++ versions.

9 years agoFix FTBFS on certain older libstdc++ versions. 118/head
Michael Marley [Wed, 11 Mar 2015 21:54:05 +0000 (17:54 -0400)]
Fix FTBFS on certain older libstdc++ versions.

9 years agoBump version for release 0.12-rc1
Manuel Nickschas [Wed, 11 Mar 2015 19:47:23 +0000 (20:47 +0100)]
Bump version for release

9 years agoUpdate ChangeLog
Manuel Nickschas [Wed, 11 Mar 2015 19:46:47 +0000 (20:46 +0100)]
Update ChangeLog

9 years agoMerge pull request #116 from mamarley/splitfix2
Manuel Nickschas [Wed, 11 Mar 2015 19:43:25 +0000 (20:43 +0100)]
Merge pull request #116 from mamarley/splitfix2

Improve the message-splitting algorithm for PRIVMSG and CTCP

9 years agoMove websearch from botton of context menu to underneath copy selection.
Chris H [Sun, 14 Sep 2014 17:30:09 +0000 (13:30 -0400)]
Move websearch from botton of context menu to underneath copy selection.

It seems the 'Copy Selection' button got moved between when the patch
was made and when it finally got applied. Got missed during the merge.

9 years agoMerge pull request #117 from mamarley/oldcoresslconfig
Manuel Nickschas [Wed, 11 Mar 2015 19:15:24 +0000 (20:15 +0100)]
Merge pull request #117 from mamarley/oldcoresslconfig

Add back the SSL protocol selection dialog box for old cores.

9 years agoMerge pull request #111 from mamarley/nosslloopback
Manuel Nickschas [Wed, 11 Mar 2015 19:13:12 +0000 (20:13 +0100)]
Merge pull request #111 from mamarley/nosslloopback

Don't require SSL for loopback connections with --require-ssl

9 years agoMerge pull request #110 from mamarley/passhash
Manuel Nickschas [Wed, 11 Mar 2015 19:10:41 +0000 (20:10 +0100)]
Merge pull request #110 from mamarley/passhash

Introduce new password hash versioning system and new salted SHA2-512 hash

9 years agoProvide a proper dialog for changing the core password
Manuel Nickschas [Wed, 11 Mar 2015 18:49:27 +0000 (19:49 +0100)]
Provide a proper dialog for changing the core password

The password change dialog now asks for your old password, and forces
you to confirm the new password by typing it twice, as is customary.
To make this works, we need to add bidirectional communication between
client and core, forcing some more changes to the way the first iteration
of the feature was done.

Note that this commit breaks compatibility with the previous implementation.
If you run a beta1 core or client, you need to upgrade both to make things
work again. Since no real release happened in between, I don't deem it
necessary to provide backwards compat or yet another feature guard.

9 years agoMake PeerPtr work for RPC calls
Manuel Nickschas [Wed, 11 Mar 2015 18:43:21 +0000 (19:43 +0100)]
Make PeerPtr work for RPC calls

While most of the functionality was already in place, it turns out
that we need to enable loading/saving PeerPtr from/to a QVariant in
order for SignalProxy to work properly.

I'm honestly not sure why it seemed to work without this when implementing
the TransferManager, but it's obvious it's required.

9 years agoAdd missing dependency to KWidgetsAddons
Manuel Nickschas [Mon, 9 Mar 2015 20:53:00 +0000 (21:53 +0100)]
Add missing dependency to KWidgetsAddons

This is pulled in by some other frameworks modules anyway, but we should
list it explicitly.

9 years agoAdd back the SSL protocol selection dialog box for old cores. 117/head
Michael Marley [Fri, 27 Feb 2015 17:31:17 +0000 (12:31 -0500)]
Add back the SSL protocol selection dialog box for old cores.

Cores before 0.10 will default to SSLv3 if the user doesn't make a
selection.  If a >=0.10 client is used with a <0.10 core to connect
to a server that has SSLv3 disabled, it is impossible to connect
to that server without upgrading the core or using an old client
to change the SSL protocol settings.

This also changes the SSLv2 and SSLv3 options to indicate their
insecurity and therefore discourage their use.

Cores from 0.10 and up use SSL autonegotiation and to not need the
protocol setting.

This partially reverts commit
e53fc69a91553b57932ba599b39999d550114588.

9 years agoDon't require SSL for loopback connections with --require-ssl 111/head
Michael Marley [Sat, 14 Feb 2015 01:12:18 +0000 (20:12 -0500)]
Don't require SSL for loopback connections with --require-ssl

Encrypting a loopback connection is a pointless waste of computing
power.  This patch will allow people to use loopback connections
from things like quassel-webserver without encryption while still
requiring encryption for remote connections.

9 years agoAdd support for SHA2-512 hash on Qt4 builds 110/head
Michael Marley [Tue, 3 Mar 2015 01:31:02 +0000 (20:31 -0500)]
Add support for SHA2-512 hash on Qt4 builds

Qt4 doesn't support anything higher than SHA1 in
QCryptographicHash, so it is necessary to include a fallback.  This
bundles sha512.c from PolarSSL/mbed TLS.  It is only used for Qt4
builds and does not require a dependency on external libraries that
might be hard to compile on Windows® or Mac OSX®.  It can be
removed once Qt4 is no longer supported.

9 years agoImprove the message-splitting algorithm for PRIVMSG and CTCP 116/head
Michael Marley [Sat, 21 Feb 2015 12:33:57 +0000 (07:33 -0500)]
Improve the message-splitting algorithm for PRIVMSG and CTCP

This introduces a new message splitting algorithm based on
QTextBoundaryFinder.  It works by first starting with the entire
message to be sent, encoding it, and checking to see if it is over
the maximum message length.  If it is, it uses QTBF to find the
word boundary most immediately preceding the maximum length.  If no
suitable boundary can be found, it falls back to searching for
grapheme boundaries.  It repeats this process until the entire
message has been sent.

Unlike what it replaces, the new splitting code is not recursive
and cannot cause stack overflows.  Additionally, if it is unable
to split a string, it will give up gracefully and not crash the
core or cause a thread to run away.

This patch fixes two bugs.  The first is garbage characters caused
by accidentally splitting the string in the middle of a multibyte
character.  Since the new code splits at a character level instead
of a byte level, this will no longer be an issue.  The second is
the core crash caused by sending an overlength CTCP query ("/me")
containing only multibyte characters.  This bug was caused by the
old CTCP splitter using the byte index from lastParamOverrun() as
a character index for a QString.

9 years agoBump version for release 0.12-beta1
Manuel Nickschas [Wed, 18 Feb 2015 21:09:54 +0000 (22:09 +0100)]
Bump version for release

9 years agoUpdate INSTALL
Manuel Nickschas [Wed, 18 Feb 2015 21:07:59 +0000 (22:07 +0100)]
Update INSTALL

9 years agoUpdate ChangeLog
Manuel Nickschas [Wed, 18 Feb 2015 20:54:50 +0000 (21:54 +0100)]
Update ChangeLog

9 years agoUpdate AboutData
Manuel Nickschas [Wed, 18 Feb 2015 20:17:51 +0000 (21:17 +0100)]
Update AboutData

9 years agoAllows merging buffers over networks
Kimmo Huoman [Mon, 2 Feb 2015 12:13:51 +0000 (14:13 +0200)]
Allows merging buffers over networks

Feature request at http://bugs.quassel-irc.org/issues/1334

> As stated in Issue 83 merge is only possible with chats on the
> same network.
> As the usage of Bitlbee etc has increased, it would be useful
> to be able to merge chats across all networks as well. The issue
> rises as people are now using alternative methods (Facebook, Lync
> etc) during the day and returning to IRC in the evening.

Closes #1334

9 years agoMerge pull request #107 from siduction-upstream/master
Manuel Nickschas [Wed, 18 Feb 2015 20:03:51 +0000 (21:03 +0100)]
Merge pull request #107 from siduction-upstream/master

Set GIT_HEAD and GIT_DESCRIBE from environment

9 years agoToggle hiding of Join/Part/Quits with a single button
Chris Holland [Sat, 1 Feb 2014 20:54:40 +0000 (15:54 -0500)]
Toggle hiding of Join/Part/Quits with a single button

9 years agoSet GIT_HEAD and GIT_DESCRIBE via environmental variables 107/head
Alf Gaida [Tue, 17 Feb 2015 22:58:32 +0000 (23:58 +0100)]
Set GIT_HEAD and GIT_DESCRIBE  via environmental variables

Set GIT_HEAD and GIT_DESCRIBE before run cmake in case no source repo is
available - booth values must be extracted at clone/pull time

Example:
git log -1 | grep commit | sed 's#commit ##' > debian/git_head; \
git describe > debian/git_describe

export GIT_HEAD=$(shell [ -f debian/git_head ] && cat debian/git_head)

9 years agoAdd "/print" command
Pierre-Hugues Husson [Mon, 26 May 2014 11:38:08 +0000 (13:38 +0200)]
Add "/print" command

This only displays an info message without sending anything to
the server.

9 years agoChange location and behavior of the Password Change action
Manuel Nickschas [Tue, 17 Feb 2015 21:16:23 +0000 (22:16 +0100)]
Change location and behavior of the Password Change action

This action fits better in the File menu than under Settings, so
move it there.

Also, to increase discoverability, we now show the option even if
the core is too old to support the feature. A popup message informing
the user is shown in that case.

Additionally, the changed password is now saved client-side (if the
account is setup to remember the password), thus avoiding having to
re-enter the new password on next launch.

9 years agoHide or disable the Change Password option when appropriate
Michael Marley [Sat, 14 Feb 2015 19:01:42 +0000 (14:01 -0500)]
Hide or disable the Change Password option when appropriate

Previously, the Change Password option would be shown all the
time, even the the client was connected to a core not supporting
the password change functionality or if a monolithic build was in
use.  Now, the Change Password option will be disabled if the
client is disconnected or is connected to a core not supporting the
functionality and will be hidden if a monolithic build is in use.

9 years agoImplement password changing from client.
Martin T. H. Sandsmark [Tue, 25 Nov 2014 00:43:18 +0000 (01:43 +0100)]
Implement password changing from client.

Add menu item and dialog for getting a new password from the user,
signal from client to core to give the new password, and wire up the
signal on the core to change the password in the database.

Also update the stored password on the client side.

9 years agoMigrate KDE-specific settings from KDE4 to KF5
Manuel Nickschas [Mon, 16 Feb 2015 22:05:55 +0000 (23:05 +0100)]
Migrate KDE-specific settings from KDE4 to KF5

This uses Kdelibs4ConfigMigrator to move over KDE-specific settings
(i.e. window state, shortcuts, notifications...) from the KDE4 config
dir to the one used by KF5. This should make the move seamless for
most intents and purposes.

Note that migration won't happen (again) once the KF5 config files
exist.

9 years agoPort remaining stuff in MainWin to KF5
Manuel Nickschas [Mon, 16 Feb 2015 21:52:57 +0000 (22:52 +0100)]
Port remaining stuff in MainWin to KF5

We use KToolbar now and handle the full screen action properly in
both KDE4 and KF5.

9 years agoFix shortcut saving on KDE, and use the system dialog for Frameworks
Manuel Nickschas [Mon, 16 Feb 2015 20:56:48 +0000 (21:56 +0100)]
Fix shortcut saving on KDE, and use the system dialog for Frameworks

While re-enabling the system dialog for shortcut editing for KF5,
I finally figured out why shortcuts where never saved when using KDE;
a long standing bug we've had.
Turns out QDialog::exec() does not actually save things. All this time
I was looking into completely different directions; but it never
occured to me that I need to explicitly save after the dialog is
accepted (our own dialog does this automatically). This is not a
complaint; it was being stupid on my end :)

Fixes #1057.

9 years agoUse KNotifications if Frameworks integration is enabled
Manuel Nickschas [Sun, 15 Feb 2015 21:48:09 +0000 (22:48 +0100)]
Use KNotifications if Frameworks integration is enabled

This brings back proper support for KNotify if KDE Frameworks
integration is enabled.

Note that quassel.notifyrc is installed in a different location
if KF5 as opposed to KDE4. If you don't have a system installation
of Quassel, you may have to manually copy that file from data/
to $HOME/.local/share/knofitications5 for KNotify to know about
Quassel.

9 years agoAdapt custom stylesheet path to new default install location
Manuel Nickschas [Thu, 12 Feb 2015 21:24:34 +0000 (22:24 +0100)]
Adapt custom stylesheet path to new default install location

When switching from a KDE4 build to Qt5/KF5, the default install
location for data files switches from /usr/share/apps/quassel to
/usr/share/quassel, as is standard. Users who have selected one of
the pre-installed stylesheets will use that setting.

Thus, if a custom stylesheet is configured and points to /usr/share/apps,
in case it is not found we will now try and look into /usr/share as well.
If we find the stylesheet in the new location, we'll also update the
stored setting.

9 years agoWork around weirdly broken MOCs
Manuel Nickschas [Wed, 11 Feb 2015 22:22:31 +0000 (23:22 +0100)]
Work around weirdly broken MOCs

Apparently, Debian Wheezy ships Qt 4.8.2 with a MOC that thinks it's older
than 4.6, or something. Not sure what's going on, but if we remove
that "#if QT_VERSION" that checks for versions older than 4.6 (and thus does
not make any sense now that we require 4.8 anyway), the MOC on (some?)
Wheezy installations fails to deal with the Q_INTERFACES call.

I guess it doesn't hurt to keep the guard around, but this issue still leaves
me scratching my head...

9 years agoUse KMainWindow if KF5 integration is enabled.
Manuel Nickschas [Sun, 8 Feb 2015 23:58:49 +0000 (00:58 +0100)]
Use KMainWindow if KF5 integration is enabled.

With this commit, Quassel uses a proper KMainWindow if KF5 integration
is enabled. This works pretty much like the KDE4 version, so we just had
to add the appropriate #includes and adapt the #ifdefs.

9 years agoMove KAboutData initialization before app initialization
Manuel Nickschas [Sun, 8 Feb 2015 23:58:16 +0000 (00:58 +0100)]
Move KAboutData initialization before app initialization

9 years agoAdd comment regarding the removal of X11 hacks to GraphicalUi
Manuel Nickschas [Sun, 8 Feb 2015 23:55:41 +0000 (00:55 +0100)]
Add comment regarding the removal of X11 hacks to GraphicalUi

Turns out all window activation stuff just works with Qt5, even with
KF5 integration enabled. So there is no need to employ fugly X11 hacks
in order to bypass focus stealing prevention, as was required in KDE4.

Because GraphicalUi doesn't seem to require any more porting changes,
add a comment instead to later remove the hacks together with Qt4/KDE4.

9 years agoRequire CMake 2.8.12 for KDE Frameworks integration
Manuel Nickschas [Sun, 8 Feb 2015 23:54:07 +0000 (00:54 +0100)]
Require CMake 2.8.12 for KDE Frameworks integration

CMake support for KF5 requires at least 2.8.12, so enforce this.
Accordingly, move cmake_minimum_required() and friends below reading
the configure option.

9 years agoMake the AboutDlg layout slightly prettier
Manuel Nickschas [Sun, 8 Feb 2015 23:50:53 +0000 (00:50 +0100)]
Make the AboutDlg layout slightly prettier

Some italic font and some more whitespace make things so much nicer.

9 years agoImprove data path handling
Manuel Nickschas [Sun, 8 Feb 2015 18:52:55 +0000 (19:52 +0100)]
Improve data path handling

Originally I intended to switch to QStandardPaths for Qt5, however this
would also require migration code. We'll postpone this until we can
get rid of Qt4 and KDE4, so there are less combinations to handle properly.

Instead, this commit improves the handling of data paths in general by
fixing search order, supporting XDG_DATA_HOME, and sanitizing the paths
properly. Also KDE builds now check their own install prefix, in case
Quassel is installed in a non-standard location.

9 years agoAdd missing index.theme to the bundled Oxygen icon theme
Manuel Nickschas [Sun, 8 Feb 2015 17:07:30 +0000 (18:07 +0100)]
Add missing index.theme to the bundled Oxygen icon theme

Otherwise, the icon loader may not find the bundled icons.

9 years agoConvert the Storage::HashVersion names to CamelCase
Michael Marley [Sun, 8 Feb 2015 18:44:33 +0000 (13:44 -0500)]
Convert the Storage::HashVersion names to CamelCase

9 years agoAdd support for a salted SHA2-512 hash
Michael Marley [Sun, 8 Feb 2015 18:25:50 +0000 (13:25 -0500)]
Add support for a salted SHA2-512 hash

This new hash uses a SHA2-512 hash salted with 512 bits of data
generated using the C++11 std::mt19937 algorithm, seeded by
std::random_device.  It only works with Qt5, so Qt4 builds will
keep using the old SHA1 hash.

9 years agoAdd support for password hash versioning
Michael Marley [Sat, 7 Feb 2015 20:40:23 +0000 (15:40 -0500)]
Add support for password hash versioning

Previously, Quassel would always use an unsalted SHA1 hash.  This
patch introduces a version field for the password, allowing for
using a better hash.  (No new hash is added yet.)  Users will be
automatically upgraded to the newest hash whenever they login or
change their passwords.

This is implemented by adding a new integer field to hold the hash
version in the DB.  Additionally, the password field in PostgreSQL
has been expanded to a TEXT field, allowing larger hash values to
be stored in the future.  The password hashing code has also been
refactored to make it easier to introduce new hashes without
fooling around in the DB driver code.

9 years agoMerge pull request #97 from Bombe/focus-host-input
Manuel Nickschas [Sat, 7 Feb 2015 16:57:26 +0000 (17:57 +0100)]
Merge pull request #97 from Bombe/focus-host-input

Set initial focus to host input widget.

9 years agoMerge pull request #104 from mamarley/disconnectdesyncfix
Manuel Nickschas [Sat, 7 Feb 2015 16:45:24 +0000 (17:45 +0100)]
Merge pull request #104 from mamarley/disconnectdesyncfix

Fix potential state desync in disconnectFromIrc()

9 years agoRemove dead assignments
Manuel Nickschas [Sat, 7 Feb 2015 16:34:02 +0000 (17:34 +0100)]
Remove dead assignments

This makes clang-analyzer happy.

9 years agoRemove unneeded conditionals
Manuel Nickschas [Sat, 7 Feb 2015 16:33:32 +0000 (17:33 +0100)]
Remove unneeded conditionals

This makes clang-analyzer happy.

9 years agoSimplify session thread handling in Core
Manuel Nickschas [Sat, 7 Feb 2015 16:25:43 +0000 (17:25 +0100)]
Simplify session thread handling in Core

Whenever we want to get a session thread for a given user, we first
would check if we already have one and get that, or create a new one.
Instead of doing this several times in the code, this commit just
turns the former createSession() method into sessionForUser(), which
will create a thread if needed. This also removes a dead assignment
clang-analyzer complained about.

9 years agoReplace assertion by condition
Manuel Nickschas [Sat, 7 Feb 2015 16:05:58 +0000 (17:05 +0100)]
Replace assertion by condition

While the condition should be always true, clang-analyzer still
complained about it. So turn this into a condition instead.

Worst case we'll just lose the item selection now.

9 years agoRemove support for obsolete Qt versions
Manuel Nickschas [Fri, 6 Feb 2015 21:30:44 +0000 (22:30 +0100)]
Remove support for obsolete Qt versions

Now that we rely on Qt 4.8+, we can get rid of a few workaround that
were in place for older versions.

9 years agoRemove support for network detection via Solid
Manuel Nickschas [Fri, 6 Feb 2015 21:22:21 +0000 (22:22 +0100)]
Remove support for network detection via Solid

Now that we rely on Qt 4.8 and up, we can use QNCM on all platforms.
Solid::Networking didn't do anything else, and is deprecated in
KDE Frameworks in favor of QNCM anyway.

Also improved the core connection settings dialog a bit.

9 years agoFilter -ansi from CMAKE_CXX_FLAGS
Manuel Nickschas [Fri, 6 Feb 2015 18:59:58 +0000 (19:59 +0100)]
Filter -ansi from CMAKE_CXX_FLAGS

This was set by older versions of KDE 4 and negates -std=c++11.

9 years agoAdd Yaohan Chen to AboutData
Manuel Nickschas [Thu, 5 Feb 2015 23:02:36 +0000 (00:02 +0100)]
Add Yaohan Chen to AboutData

9 years agoMerge pull request #108 from hagabaka/master
Manuel Nickschas [Thu, 5 Feb 2015 22:46:54 +0000 (23:46 +0100)]
Merge pull request #108 from hagabaka/master

Add QNetworkConfigurationManager-based connection detection

9 years agoDisable Clang for building against Qt4 in the CI
Manuel Nickschas [Thu, 5 Feb 2015 22:26:52 +0000 (23:26 +0100)]
Disable Clang for building against Qt4 in the CI

Qt4 does not support C++11 features when building with Clang, so
the Travis CI fails. This commit should disable this combination
in the build matrix.

9 years agoMerge pull request #102 from mamarley/qcaqt5
Manuel Nickschas [Thu, 5 Feb 2015 20:47:59 +0000 (21:47 +0100)]
Merge pull request #102 from mamarley/qcaqt5

Add support for compiling with QCA on Qt5

9 years agoAdd Qt-based connection detection 108/head
Yaohan Chen [Sat, 24 Jan 2015 23:50:12 +0000 (18:50 -0500)]
Add Qt-based connection detection

A new network detection mode is added to use QNetworkConfigurationManager,
available in Qt4.7+ including Qt5. This becomes the default mode when KDE4
integration is not available.

9 years agoMerge pull request #105 from merlin1991/qdatastream
Manuel Nickschas [Thu, 5 Feb 2015 00:08:46 +0000 (01:08 +0100)]
Merge pull request #105 from merlin1991/qdatastream

Set the version of the QDataStream in ClientAuthHandler

9 years agoSimplify the handling of the contributor list in AboutDlg
Manuel Nickschas [Wed, 4 Feb 2015 23:20:06 +0000 (00:20 +0100)]
Simplify the handling of the contributor list in AboutDlg

This introduces an AboutData class akin to KAboutData from KDE
Frameworks. Together with brace initialization, which we can now
use thanks to C++11, this makes specifying the (huge!) list of
contributors to Quassel much nicer, compared to editing a long
HTML string.

AboutData also can create a KAboutData object that can be used for
KF5 integration, and later for showing the native KAboutDialog
instead of our own if KDE integration is enabled.

The list of contributors has also been synced with the Git history
again. If you find your name missing, or want changes, please
let us know.

9 years agoMake UTF-8 the default encoding for QString and tr()
Manuel Nickschas [Wed, 4 Feb 2015 23:15:26 +0000 (00:15 +0100)]
Make UTF-8 the default encoding for QString and tr()

As all our source files are in UTF-8 (and Qt5 even requires them to
be), we can just tell Qt4 to treat them as that. So no need anymore
to use QString::fromUtf8() for literals.

This also makes it possible to use string literals in brace
initializers for QString.

9 years agoAdd D-Bus domain to .desktop files
Manuel Nickschas [Wed, 4 Feb 2015 23:14:05 +0000 (00:14 +0100)]
Add D-Bus domain to .desktop files

This is recommended for KDE software.

9 years agoBump Qt4 version requirement to 4.8
Manuel Nickschas [Mon, 2 Feb 2015 22:21:40 +0000 (23:21 +0100)]
Bump Qt4 version requirement to 4.8

Qt 4.8 gained some support for C++11 features such as brace
initializers, which make some things much more convenient. As
this version was released more than three years ago, it should
be safe to finally bump our requirements accordingly. The core
was even fine with Qt 4.4 until now, and that was released a
whopping 7 years ago!

Requiring 4.8 will allow us to remove a bunch of old workarounds
as well, besides allowing for proper use of C++11 in the future.