Commit 66563389 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Add pragma to keep track of KFileDialog crashes

parent c79a32ac
......@@ -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"));
......
......@@ -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"));
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment