Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Konsole
Commits
66563389
Commit
66563389
authored
Sep 17, 2013
by
Kurt Hindenburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pragma to keep track of KFileDialog crashes
parent
c79a32ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
src/ColorSchemeEditor.cpp
src/ColorSchemeEditor.cpp
+1
-0
src/EditProfileDialog.cpp
src/EditProfileDialog.cpp
+1
-0
src/SessionController.cpp
src/SessionController.cpp
+3
-0
No files found.
src/ColorSchemeEditor.cpp
View file @
66563389
...
...
@@ -159,6 +159,7 @@ void ColorSchemeEditor::editColorItem(QTableWidgetItem* item)
}
void
ColorSchemeEditor
::
selectWallpaper
()
{
#pragma message("Fix crashes with KFileDialog")
const
KUrl
url
=
KFileDialog
::
getImageOpenUrl
(
KUrl
(
_ui
->
wallpaperPath
->
text
()),
this
,
i18nc
(
"@action:button"
,
"Select wallpaper image file"
));
...
...
src/EditProfileDialog.cpp
View file @
66563389
...
...
@@ -396,6 +396,7 @@ void EditProfileDialog::commandChanged(const QString& command)
}
void
EditProfileDialog
::
selectInitialDir
()
{
#pragma message("Fix crashes with KFileDialog")
const
KUrl
url
=
KFileDialog
::
getExistingDirectoryUrl
(
KUrl
(
_ui
->
initialDirEdit
->
text
()),
this
,
i18n
(
"Select Initial Directory"
));
...
...
src/SessionController.cpp
View file @
66563389
...
...
@@ -1591,6 +1591,7 @@ void SessionController::zmodemDownload()
if
(
zmodem
.
isEmpty
())
{
zmodem
=
QStandardPaths
::
findExecutable
(
"lrz"
);
}
#pragma message("Fix crashes with KFileDialog")
if
(
!
zmodem
.
isEmpty
())
{
const
QString
path
=
KFileDialog
::
getExistingDirectory
(
KUrl
(),
_view
,
...
...
@@ -1628,6 +1629,7 @@ void SessionController::zmodemUpload()
return
;
}
#pragma message("Fix crashes with KFileDialog")
QStringList
files
=
KFileDialog
::
getOpenFileNames
(
KUrl
(),
QString
(),
_view
,
i18n
(
"Select Files for ZModem Upload"
));
if
(
!
files
.
isEmpty
())
{
...
...
@@ -1682,6 +1684,7 @@ void SaveHistoryTask::execute()
// TODO - show a warning ( preferably passive ) if saving the history output fails
//
#pragma message("Fix crashes with KFileDialog")
KFileDialog
*
dialog
=
new
KFileDialog
(
KUrl
(
QString
(
":konsole"
))
/* check this */
,
QString
(),
QApplication
::
activeWindow
());
dialog
->
setOperationMode
(
KFileDialog
::
Saving
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment