Commit Graph

7918 Commits

Author SHA1 Message Date
Jonathan Riddell
c65a8c5b38 set soversion manually rather than use year 2021-08-13 07:58:09 +00:00
Ahmad Samir
bbec72250d Prevent window "flashing" when closing the last session
There are two scenarios when closing a window:
A) clicking the close button on the title bar (or Ctrl+Shift+Q):
~MainWindow()
~ViewManager()
~TabbedViewContainer()
~TerminalDisplay()
~Session()

B) closing the last session/tab in a window:
SessionController::sessionFinished()
~Session()
~TerminalDisplay()
~TabbedViewContainer()
~MainWindow()
~ViewManager()

the issue with the second case is that the TerminalDisplay is torn down
first, which exposes the TabbedViewContainer widget, the latter has the same
Qt::Window colour as the system colour scheme window background colour, if
you're using a dark terminal colour scheme and a light-coloured system colour
scheme, you could see some "flashing" when you close the last session with
e.g. Ctrl+D.

To fix this, in sessionFinished() check if TabbedViewContainer::count() is
1 (i.e. closing last tab/session), and emit the empty() signal in that case,
which is connected to MainwWindow::close(), then the order of tear down
becomes:
SessionController::sessionFinished()
~Session()
~MainWindow()
~ViewManager()
~TabbedViewContainer()
~TerminalDisplay()

BUG: 432077
FIXED-IN: 21.12
2021-08-12 14:25:03 +02:00
Laurent Montel
99b3959464 Add missing includes when we want to build without deprecated methods 2021-08-06 13:20:12 +02:00
Laurent Montel
ecad15eb99 GIT_SILENT: Add support for building without deprecated method 2021-08-06 13:20:12 +02:00
Ahmad Samir
aba8bb0303 Add an option to disable thumbnails generation 2021-08-05 14:54:54 +00:00
Ahmad Samir
39d3437df9 Fix crash when closing a tab using the close button
Looking at the crash backtraces from the bug reports, it seems this is what
happens, when you have two tabs open, then click the close button on the
non-current tab:
  - QTabBar::currentChanged() is emitted, the TerminalDisplay pointer is
    still not null at this point (the code checks for that)
  - TabbedViewContainer::currentTabChanged()
  - TabbedViewContainer::activeViewChanged()
  - ViewManager::activateView(), at this point the TerminalDisplay pointer
    could be null, which then crashes when we call Widget::setFocus()

BUG: 411962
FIXED-IN: 21.12
2021-08-05 09:17:19 +00:00
Heiko Becker
b0c23b49fd GIT_SILENT Update Appstream for new release
(cherry picked from commit 6c5de7d0b4)
2021-08-04 23:52:33 +02:00
Paul Brown
6ca783ad34 Add instructions for building
Put all OS/distributions instructions here in one file
2021-08-03 11:31:47 -04:00
Kurt Hindenburg
2f532dfa18 set option ENABLE_PLUGIN_SSHMANAGER before we add the directory
Otherwise the default ON is not used if the option is not given on the
command line when building
2021-08-02 17:11:11 -04:00
Ahmad Samir
4cab54d2bb Don't connect more slots to EditProfileDialog::accepted() signal
This is similar to commit c413d543c1, EditProfileDialog's base class
(KPageDialog) already connects OK button clicked signal to accepted() signal;
creating another connection to accepted() in SessionController (which
creates the EditProfileDialog object), means the code will be run twice, not
ideal. Instead put the logic in EditProfileDialog::save() which is called by
the EditProfileDialog::accept() slot.

The same goes when ProfileSettings creates an EditProfileDialog.
2021-08-02 15:47:29 +00:00
Ahmad Samir
414f933fe5 Remove statusbar related code
It shouldn't be created any more since we don't pass the
KXmlGuiWindow::StatusBar flag when using KXmlGuiWindow::setupGUI().

GIT_SILENT
2021-08-02 15:28:09 +00:00
Ahmad Samir
bb7dd804b2 Fix MainWindow size when there is no saved size
The very first time a user runs Konsole, where is no konsolerc file in $HOME,
there is no saved size to restore, instead use the sizeHint(), which ideally
will be the size set in the default profile (based on lines/columns setting).

CCBUG: 437791
2021-08-02 15:28:09 +00:00
Ahmad Samir
090356661c Fix KXmlGUI toolbars; and Konsole MainWindow size
Call setupGUI(), which will call createGUI (since we set the
KXmlGuiWindow::Create flag), omit the StatusBar flag since we don't have a
statusbar and don't want the "Show StatusBar" menu action.

TabbedViewContainer::sizeHint() calculates an optimum size for itself,
including the sizes of its child widgets; added in efb621d091 by
Mariusz Glebocki; following the code:
MainWindow creates a ViewManager
ViewManager creates a TabbedViewContainer and then a TerminalDisplay

which means that the first time TabbedViewContainer::sizeHint() is called
the TerminalDisplay widget size is 0, then TabbedViewContainer::sizeHint()
would return 0.

Which is why calling resize() in MainWindow was delayed to the showEvent(),
(and even delayed more by a QTimer::singleShot() call in Application),
at which point all the child widgets have been created and
MainWindow::sizeHint() (which logically takes into account the sizeHint()
of its child widgets) would return a sensible size.

CCBUG: 430036
CCBUG: 439339
BUG: 436471
2021-08-02 15:28:09 +00:00
Ahmad Samir
0b93ddf372 Remove a redundant #inlcude
GIT_SILENT
2021-08-02 15:28:09 +00:00
Kurt Hindenburg
8f51724d68 KFileItemActions::addOpenWithActionsTo to insertOpenWithActionsTo
Convert depreciated method in KF 5.82
2021-07-30 19:40:15 -04:00
Martin T. H. Sandsmark
0243c0d394 Add a convenience makefile for the manual tests 2021-07-30 22:56:43 +00:00
Martin T. H. Sandsmark
8bf30d3df1 clean up manual tests 2021-07-30 22:56:43 +00:00
Martin T. H. Sandsmark
f8be1b0e2b start documenting manual tests 2021-07-30 22:56:43 +00:00
Martin T. H. Sandsmark
317373e826 Fix off by one in getting highlight boundary 2021-07-30 21:01:48 +00:00
l10n daemon script
67c7cc98ae SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-07-27 01:28:34 +00:00
Jonathan Riddell
129f511bcd initialise kcrash to ensure it gets linked 2021-07-26 11:43:16 +01:00
l10n daemon script
c8717b71f6 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-07-26 01:19:39 +00:00
Ahmad Samir
a6b2bd5391 Fix crash when setting blur effect
Basically to use QWidget::windowHandle() to get a QWindow*, we need to first
set the Qt::WA_NativeWindow attribute on the QWidget. See:
https://phabricator.kde.org/D23108

BUG: 439871
FIXED-IN: 21.12
2021-07-23 16:06:51 +00:00
Ahmad Samir
512ce4403d Don't create a new temp profile when --workdir is used to launch Konsole
Instead set the Session initial working directory.

BUG: 435537
BUG: 419859
CCBUG: 433160
2021-07-23 16:06:09 +00:00
l10n daemon script
2d5f3f4541 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-07-22 01:17:05 +00:00
l10n daemon script
fd96aad2c2 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-07-21 01:17:21 +00:00
l10n daemon script
fb69c183c6 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-07-19 01:18:58 +00:00
Tomaz Canabrava
dc92c59311 Fix compilation 2021-07-16 12:00:51 +01:00
Luis Javier Merino Morán
ed7fe4a2cb Resize lines when clearing to end of line.
clearImage() just clears until _columns.  To prevent characters from
beyond _columns from reappearing, e.g. due to DCH (Delete CHaracters)
requests, make clearImage() resize lines when clearing to the end of
line.

BUG: 432669
2021-07-16 10:55:07 +00:00
Martin T. H. Sandsmark
7a35124f4f Implement actual testing of Vt102 emulator 2021-07-16 10:53:06 +00:00
Martin T. H. Sandsmark
bd7134a6ad When selecting select highlighted case if available (e. g. URLs) 2021-07-16 10:50:56 +00:00
Martin T. H. Sandsmark
1946d32d24 Fix one crash in the sshmanager plugin
BUG: 439551
2021-07-16 10:47:29 +00:00
l10n daemon script
5418690380 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-07-16 01:19:12 +00:00
l10n daemon script
669110c978 GIT_SILENT made messages (after extraction) 2021-07-16 00:21:15 +00:00
Kurt Hindenburg
c05243ecb6 Enable SSHManager plugin by default for master for now 2021-07-12 22:11:52 -04:00
Martin T. H. Sandsmark
9da270dc3a Make the building of the SSH manager plugin conditional
It is crashing several times a day for me, and every time it closes all
Konsole windows I have open (including the ones I'm working in), so I
suggest it should be turned off by default for this release.

(cherry picked from commit 2a788380f6)
2021-07-12 22:10:27 -04:00
Albert Astals Cid
26018e3aac GIT_SILENT Upgrade release service version to 21.11.70. 2021-07-10 19:58:37 +02:00
Kurt Hindenburg
2b4199e27e Change loop variable to un-shadow 2021-07-09 16:32:20 -04:00
Kurt Hindenburg
2f1450d80c Fix memory link in ssh manager QRegularExpressionValidator()
Patch by Martin T. H. Sandsmark <martin.sandsmark@kde.org>

BUG: 439555
2021-07-09 11:40:22 -04:00
l10n daemon script
2ba0b201f5 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-07-09 01:17:18 +00:00
l10n daemon script
146aeb85b4 GIT_SILENT made messages (after extraction) 2021-07-09 00:19:56 +00:00
Luis Javier Merino Morán
877a5128cb Fix assert _currentTerminalDisplay in Screen::setTextSelectionRendition
_currentTerminalDisplay was not set until some interaction was made with
the TerminalDisplay widget.  Set it as soon as Session->addView() is
called.

BUG: 439529
2021-07-08 20:42:30 +00:00
l10n daemon script
462b24c588 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-07-08 01:23:20 +00:00
Carlos Alves
9afab8d93f Fix the Edit button
There is no icon to show.
2021-07-07 21:54:11 +00:00
Carlos Alves
42320595d8 Fix plugin menu visual checked problem
It is not unchecking the "Show SSH Manager" when closing the
dockWidget with the Close icon.

It is not checking the the box when the dockWidget opens with the
konsole.
2021-07-07 21:54:11 +00:00
Carlos Alves
7c0198f9be Fix compile warnings
-> warning: extra ‘;’ [-Wpedantic]
2021-07-07 21:54:11 +00:00
Jonah Brüchert
4a5e7a5644 Revert "TerminalDisplay: Move out common pasting related code"
This reverts commit 8e8b924353.
2021-07-06 21:15:06 +02:00
Jonah Brüchert
3baa2aa8e9 Revert "TerminalDisplay: Extract copying related functions"
This reverts commit 1a2867c8ec.
2021-07-06 21:14:42 +02:00
Jonah Brüchert
dfda7d5336 Revert "Fix copying html from the terminal"
This reverts commit 8b38d5875e.
2021-07-06 21:14:14 +02:00
Heiko Becker
e844dc6e0d GIT_SILENT Update Appstream for new release
(cherry picked from commit b778e602f6)
2021-07-05 20:59:27 +02:00