Commit graph

4602 commits

Author SHA1 Message Date
Emmanuel Pescosta
d389f50d85 Merge branch 'Applications/14.12' 2014-11-10 09:24:17 +01:00
Frank Reininghaus
7e58ee0133 Make sure that m_selectionToggle is not 0 before calling deleteLater()
Commit 1938ad54d4 replaced delete by
deleteLater(). However, the latter cannot be used safely with null
pointers. This commit adds a safety check in order to make sure that
we do not get a crash.

Thanks to Christoph Feck for pointing out this issue.
2014-11-09 21:57:40 +01:00
Frank Reininghaus
b73ed8eba9 Use deleteLater() to delete the selection toggle in KItemListWidget
This patch should make a crash with a backtrace as provided in the bug
report impossible. I'm not sure if this would really prevent the crash
- it looks like the actual cause of the problem could be in
QGraphicsView or anywhere else, but it's hard to tell because the bug
was reported just once and does not seem reproducible. But I'm pretty
sure that this change doesn't make anything worse.

BUG: 334785
REVIEW: 121087
2014-11-09 18:08:29 +01:00
Arjun AK
cbe1d6aca4 Ensure input is a valid regexp before enabling regexp filter mode
Checking whether the input contains '*', '?' or '[' alone will
not do since there can be files with '[' in their name.

REVIEW: 120986
BUG: 340470
FIXED-IN: 14.12
2014-11-09 19:36:20 +05:30
l10n daemon script
36f571a0ce SVN_SILENT made messages (after extraction) 2014-11-09 05:29:52 +00:00
l10n daemon script
6218ae80e5 SVN_SILENT made messages (after extraction) 2014-11-09 01:37:06 +00:00
l10n daemon script
4518f7f969 SVN_SILENT made messages (after extraction) 2014-11-07 01:38:12 +00:00
l10n daemon script
e19e00c52a SVN_SILENT made messages (after extraction) 2014-11-04 06:32:18 +00:00
Emmanuel Pescosta
76a7ab4bff Merge branch 'KDE/4.14' 2014-10-29 12:20:10 +01:00
Emmanuel Pescosta
b3e113c05a Hide the video player when the video has finished.
BUG: 339882
FIXED-IN: 4.14.3
REVIEW: 120776
2014-10-29 12:18:02 +01:00
Frank Reininghaus
1f02d15f7e Merge remote-tracking branch 'origin/KDE/4.14' 2014-10-24 18:45:28 +02:00
Frank Reininghaus
d9700c4d43 Make the view/Terminal Panel synchronization less error-prone
The previous solution could cause problems if the user navigates to a
different URL in one view, and then activates another split view very
quickly: the new active view might be switched to the same URL as the
first view, which is unwanted.

To fix this problem, we record a history of "cd" commands that Dolphin
sends to the Terminal Panel in a queue. If a currentDirectoryChanged
signal is received, and the new terminal directory is "dir", this patch
does the following:

1.  If the queue is empty, change the view URL to "dir".
2.  Otherwise, take the queue's head, and check if it is equal to
    "dir". If that is the case, ignore the signal and return.
3.  Go back to step 1.

This ensures that every currentDirectoryChange signal that is caused by
a "cd" that was sent from Dolphin to the terminal is ignored.

BUG: 339009
BUG: 314038
REVIEW: 120768
2014-10-24 18:14:08 +02:00
Andrey Bondrov
3f28c70423 Fix the information panel video player in Dolphin.
Patch from ROSA Linux.

BUG: 337107
BUG: 337033
BUG: 334924
CCBUG: 339882
REVIEW: 120745
FIXED-IN: 4.14.3
2014-10-24 08:26:40 +02:00
Frank Reininghaus
592e1730e2 Merge branch 'KDE/4.14' 2014-10-23 23:23:19 +02:00
Frank Reininghaus
9d6f50ac50 Connect to the currentDirectoryChanged signal after the shell setup
This fixes the problem that the view URL may be reset to the Home URL
when opening the Terminal Panel while browsing a remote URL. Moreover,
it fixes crashes that can occur when the signal is received during the
shell setup if the DolphinMainWindow does not have a valid
m_activeViewContainer yet.

BUG: 339502
BUG: 340233
REVIEW: 120726
FIXED-IN: 4.14.3
2014-10-23 23:17:43 +02:00
Frank Reininghaus
a75e81ca01 Merge remote-tracking branch 'origin/KDE/4.14' 2014-10-16 20:33:19 +02:00
Frank Reininghaus
d98c61abf5 Update "About" dialog after maintainership change
See http://lists.kde.org/?t=140990649300001&r=1&w=2

REVIEW: 120608
2014-10-16 20:19:59 +02:00
Emmanuel Pescosta
a58f159854 Made the free space indicator and zoom slider a little bit larger. (was reduced by an older commit)
BUG: 339768
FIXED-IN: 4.14.3
2014-10-13 11:53:06 +02:00
l10n daemon script
ca6507b47c SVN_SILENT made messages (.desktop file) 2014-10-12 07:05:59 +00:00
l10n daemon script
df7b18aaae SVN_SILENT made messages (after extraction) 2014-10-12 05:17:04 +00:00
l10n daemon script
86ffee5313 SVN_SILENT made messages (.desktop file) 2014-10-12 04:06:23 +00:00
l10n daemon script
bf288b88cc SVN_SILENT made messages (after extraction) 2014-10-12 01:38:49 +00:00
l10n daemon script
a696093fa2 SVN_SILENT made messages (after extraction) 2014-10-09 05:14:24 +00:00
l10n daemon script
6993025dc3 SVN_SILENT made messages (after extraction) 2014-10-09 01:31:06 +00:00
Luca Beltrame
4479a546bd Merge branch 'KDE/4.14' 2014-09-21 14:36:02 +02:00
Arjun AK
398162a1be Do not allow files or folders inside trash to be added to dolphin's places panel
REVIEW: 120286
BUG: 339204
FIXED-IN: 4.14.2
2014-09-21 17:16:19 +05:30
Emmanuel Pescosta
4a774cb250 Merge branch 'KDE/4.14' 2014-09-11 10:49:58 +02:00
Emmanuel Pescosta
c19c4590cf Set the focus to the active view if the current tab has been changed.
BUG: 338892
FIXED-IN: 4.15.0
REVIEW: 120125
2014-09-10 09:41:17 +02:00
kdeuser 56
c98e014d2a Rename "Recently Accessed" to "Recently Saved"
In dolphin the Section that leads you to timeline claims
to show "Recently Accessed", which is not true, it shows
"Recently Saved" instead.

BUG: 304854
REVIEW: 119986
2014-09-02 21:37:41 +02:00
Frank Reininghaus
47bd204804 Make it possible to open archives via the command line
This used to work before afcf8961f6 (only
if "Open archives as folder" was enabled in the settings though). The
reason why this commit broke it is that the mime type of a file is not
determined automatically any more before asking
KProtocolManager::protocolForArchiveMimetype for the correct protocol,
so the determination of the protocol may fail.

Keeping the isMimeTypeKnown() check in DolphinView::openItemAsFolderUrl
still makes sense, because it prevents GUI blocking if the user tries
to open many files at the same time.

Therefore, we now call determineMimeType() in
DolphinViewContainer::slotUrlIsFileError(const KUrl&) and then try to
determine the correct protocol and use it to open the archive in the
view, rather than hoping that slotItemActivated(item) will do the right
thing.

BUG: 333078
REVIEW: 119877
FIXED-IN: 4.14.1
2014-09-01 00:06:18 +02:00
Emmanuel Pescosta
773028f270 Merge branch 'KDE/4.14'
Conflicts:
	dolphin/src/dolphinmainwindow.cpp
2014-08-31 17:09:29 +02:00
Emmanuel Pescosta
dc378935d3 Only keep the active view container connected with the main window, all inactive
view containers are disconnected. Changing the connections is done whenever the
active view has been changed, so we can always guarantee that the active view is
connected.

The problem with restoring saved sessions is, that we create a new view container
in DolphinTabPage::restoreState() when split view was used in the previous session,
but this view container isn't connected to the main window slots because
DolphinMainWindow::connectViewSignals() is not called for this container. This leads
to these strange problems: no context menu, ...

BUG: 338549
REVIEW: 119961
FIXED-IN: 4.14.1
2014-08-31 17:00:10 +02:00
l10n daemon script
f27250bf27 SVN_SILENT made messages (after extraction) 2014-08-24 01:43:17 +00:00
Emmanuel Pescosta
7b0c9bbc58 Merge branch 'KDE/4.14' 2014-08-22 22:44:53 +02:00
Arjun AK
4290827540 Hide an already visible KMessageWidget message before showing a new one
1. Do some operation that causes the KMessageWidget to show an error message
2. Immediately Repeat the same action.

The user has no way to know whether the error message is from the second operation or
is a leftover from the first one. By hiding the widget first and then showing it using
animatedShow(), the user can clearly see that a new message was generated. Also once the
directory successfully loads, the widget should be hidden.

BUG: 323077
FIXED-IN: 4.14.1
REVIEW: 119401
2014-08-22 18:42:50 +05:30
Emmanuel Pescosta
2d2d55f3df Save the view states in addition to the view urls and splitter state in DolphinTabPage.
Also added version numbers to view and tab state.

REVIEW: 119792
2014-08-20 23:06:39 +02:00
Emmanuel Pescosta
4b758c386f Merge branch 'KDE/4.14'
Conflicts:
	dolphin/src/dolphin.appdata.xml
2014-08-14 18:28:51 +02:00
Mathieu Tarral
b73aeb4598 Fixes display issues of Dolphin statusbar widgets when a high DPI value is used (>= 196 for example).
BUG: 334271
REVIEW: 119701
FIXED-IN: 4.14.1
2014-08-14 18:12:08 +02:00
Emmanuel Pescosta
cdebd19925 Merge branch 'master' of git://anongit.kde.org/kde-baseapps 2014-08-14 17:57:44 +02:00
l10n daemon script
4d2877e4bb SVN_SILENT made messages (after extraction) 2014-08-14 01:41:42 +00:00
Emmanuel Pescosta
39d8fb12c1 React on the redirection signal from DolphinView to properly update the tab and window titles.
REVIEW: 119697
BUG: 305721
2014-08-13 22:06:28 +02:00
Emmanuel Pescosta
62418c58a5 Use DolphinTabPage saveState/restoreState to remember and re-open closed tabs.
REVIEW: 118968
2014-08-13 20:50:36 +02:00
l10n daemon script
c7e300db90 SVN_SILENT made messages (after extraction) 2014-08-13 05:58:14 +00:00
Frank Reininghaus
4b70446c17 Merge branch 'KDE/4.14' 2014-08-12 09:23:24 +02:00
Frank Reininghaus
bf1ac8ee9b Always clear DolphinView's m_currentItemUrl member in updateViewState()
Before this patch, we still kept the URL in m_currentItemUrl if the URL
was not found in the model. This could cause problems the next time
updateViewState() was called, because the current index would then be
set to 0, which could cause other issues.

For example, all items between the first item in the view and a folder
which was expanded in Details View could be selected.

In principle, it is possible that updateViewState() is called multiple
times if many large files are being pasted in the view, but since the
item which should be made the current item (and which the view should
be scrolled to) should always be the first pasted item, this change
will most likely not cause any other problems.

BUG: 329377
REVIEW: 119703
FIXED-IN: 4.14.0
2014-08-12 09:17:41 +02:00
Frank Reininghaus
4ed068ffff Fix crash when restoring a session stored with Dolphin 4.13 or earlier
Since DolphinTabPage::saveState() and
DolphinTabPage::restoreState(const QByteArray& state) save and restore
the state of each tab in a different format than DolphinMainWindow did
before the refactoring, we can run into problems: the first time a user
logs into a session that has Dolphin 4.14, Dolphin might read session
data that does not contain the QByteArray that DolphinTabPage wants to
read the data from.

In restoreState, isSplitViewEnabled will thus have the value false, and
no secondary view will be created. Later on, m_primaryViewActive will
also be set to false, but the else branch of the following
"if (m_primaryViewActive)" then tries to activate the secondary view,
which does not exist -> we get a crash.

The easiest solution is to not restore the tab state if no session data
in the new format is found.

BUG: 338187
REVIEW: 119718
FIXED-IN: 4.14.0
2014-08-12 09:08:30 +02:00
Emmanuel Pescosta
38381bc6a2 Implemented DolphinTabWidget class to encapsulate the tab handling from DolphinMainWindow.
REVIEW: 119115
2014-08-10 18:52:06 +02:00
l10n daemon script
013b2346f5 SVN_SILENT made messages (after extraction) 2014-08-10 05:48:43 +00:00
l10n daemon script
1ffb64db1f SVN_SILENT made messages (after extraction) 2014-08-10 01:35:56 +00:00
Emmanuel Pescosta
18a976c435 Fix wrong text eliding in some corner cases.
BUG: 337104
FIXED-IN: 4.14.0
REVIEW: 119546
2014-08-04 19:43:07 +02:00