Commit graph

4780 commits

Author SHA1 Message Date
Emmanuel Pescosta 17c7e2f469 Fixed build error which was introduced by commit 7ed7cd97d084364d8ee61b35f5ffa3630c5277a4
CCMAIL: bhush94@gmail.com
2014-11-11 08:02:29 +01:00
Emmanuel Pescosta 424d20e435 KIntSpinBox to QSpinBox 2014-11-10 09:12:33 +01:00
Emmanuel Pescosta 02c0835148 KLineEdit to QLineEdit 2014-11-10 09:08:04 +01:00
Emmanuel Pescosta d0f0f1f2e2 make use of initializer lists 2014-11-10 08:45:38 +01:00
Emmanuel Pescosta 82f19ab470 get rid of unused warnings 2014-11-10 08:42:37 +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
Frank Reininghaus cc299154f4 Fix more unit test failures
This commit is analogous to 5cf8941ac789e47da70fe466033f45df9af1a3fa,
but the problem existed since the frameworks port was started and was
not obvious because the QString -> KUrl/QUrl port was done implicitly
when calling KIO::rename(oldPath, newPath, KIO::HideProgressInfo).

REVIEW: 120941
2014-11-04 22:42:45 +01:00
Frank Reininghaus 66a1b33e5a Fix unit test failures
These were caused by 86e31084ced8ba4875a6128f91ec2ca3d6df7a31 - note
that the correct replacement for KUrl(fileName) is
QUrl::fromLocalFile(fileName), and that calling the const function
urlA.adjusted(QUrl::RemoveFilename) only has an effect if the return
value is taken.
2014-11-04 22:42:37 +01:00
l10n daemon script e19e00c52a SVN_SILENT made messages (after extraction) 2014-11-04 06:32:18 +00:00
Lukáš Tinkl a069d24d4b fix default tab prev/next shortcuts
take into accound the whole list, not just the first shortcut
2014-11-04 00:00:04 +01:00
Lukáš Tinkl 037d5db85b Q_DECL_OVERRIDE 2014-11-03 23:52:18 +01:00
Lukáš Tinkl b96def1856 use QUrl::fromLocalFile() on devices
fixes being unable to access eg. removable drives
2014-11-03 18:25:19 +01:00
Lukáš Tinkl 7a3310ce73 fix initializer list 2014-11-03 16:16:52 +01:00
David Faure 30175dcbde KonqOperations: KIO::pasteMimeData -> KIO::paste, update signal and simplify dolphin accordingly. 2014-11-02 17:17:24 +01:00
David Faure 3e14a97a0f Many cleanups in KonqOperations 2014-11-02 17:03:18 +01:00
David Faure 98880e4430 Update status of paste action once directory has finished loading.
Since 6a6cf1ab328e7600f0c2b375e43a1e3bd236a5a7, it depends on rootItem()
which is not available until the dirlister emits it.
2014-11-02 15:34:30 +01:00
David Faure 8b306b67bf Port from KonqOperations::doPaste to new job KIO::paste
Remove KonqOperations::doPaste.
2014-11-02 15:20:41 +01:00
Arjun AK e256daa569 Enable KRun's script execution prompt.
This commit enables KRun's script/desktop file execution prompts,
which is shown when the user launches an executable script or a
desktop file. This is done so as to prevent the user from accidentaly
executing programs. A checkbox to enable or disable the prompts is also
being added to the preferences window

REVIEW: 120171
BUG: 275405
2014-11-01 16:41:29 +05:30
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
Montel Laurent 422dc4e921 Port to QDialog 2014-10-28 21:49:53 +01:00
Montel Laurent a76cb4c67f Port to QDebug*. KVBox-- 2014-10-27 22:30:02 +01:00
Lukáš Tinkl 5ed011357c don't save view_properties in ~/.local/share/dolphindolphin
looks like writableLocation() already includes the app name
2014-10-26 19:02:03 +01:00
Frank Reininghaus fa988586bc Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	dolphin/src/panels/terminal/terminalpanel.cpp
	dolphin/src/panels/terminal/terminalpanel.h
2014-10-24 18:49:05 +02: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
Emmanuel Pescosta c07a97c4be Use the path instead of the display string in PlacesItemModel::closestItem,
fixes the determination of the closest item for me.
2014-10-21 22:54:15 +02:00
Emmanuel Pescosta c9641c96f9 Fix Dolphin build (protocol -> scheme) 2014-10-21 22:31:50 +02:00
Lukáš Tinkl a8b39ff601 address 2 more KUrl -> QUrl issues mentioned in rr#120688 2014-10-21 22:02:26 +02:00
David Faure 9bf03a3c48 Dolphin: port to KIO::pasteInfoText().
DolphinContextMenu::createPasteAction used to be precise about destination
("Paste To Folder"), while now it's precise about the source (what to paste).
It was decided that this was more useful and consistent anyway.

REVIEW: 120695
2014-10-21 21:59:05 +02:00
Lukáš Tinkl 0ce1c983b5 port away from KMimeType 2014-10-21 21:37:30 +02:00
Lukáš Tinkl 12413eb910 libkonq now loads its own catalog 2014-10-21 21:37:09 +02:00
Lukáš Tinkl 1b4572dac9 port Dolphin from KUrl to QUrl
REVIEW: 120688
2014-10-21 21:19:14 +02:00
David Faure 3653c8ad6b Merge doPaste and doPasteV2. Remove unused QPoint. Remove unused editMimeType. 2014-10-21 00:39:40 +02:00
David Faure 403f8e7133 Port from KonqOperations::editMimeType to KMimeTypeEditor::editMimeType (from kwidgetsaddons) 2014-10-21 00:38:39 +02:00
Lukáš Tinkl d9d7926c49 port Konqueror from KUrl to QUrl
REVIEW: 120650
2014-10-21 00:28:58 +02:00
Emmanuel Pescosta 3c74d908de The filenamesearch ioslave has been moved to kio-extras, remove it from Dolphin.
See commit 05689c462745edbaeebcfc63d456877746805451 in kio-extras
2014-10-20 11:10:13 +02:00
Montel Laurent bfdc5a44d2 Increase version 2014-10-19 15:07:34 +02:00
Montel Laurent 0a6257bce3 Fix includes 2014-10-18 15:00:17 +02:00
Montel Laurent aabd6ad3bc port to QPushButton 2014-10-18 14:43:41 +02:00
Montel Laurent 31a0c4fbd5 Fix includes 2014-10-18 14:42:41 +02:00
Montel Laurent 3d6c254846 Remove kdelibs4support 2014-10-18 14:40:47 +02:00
Montel Laurent cac9083e2c fix forward declaration 2014-10-18 14:38:28 +02:00
Montel Laurent 938a83b8b1 Port test to qt5 2014-10-18 14:36:34 +02:00