diff --git a/src/frontends/qt4/GuiGraphics.cpp b/src/frontends/qt4/GuiGraphics.cpp
index a7398a17b7..107813006f 100644
--- a/src/frontends/qt4/GuiGraphics.cpp
+++ b/src/frontends/qt4/GuiGraphics.cpp
@@ -282,15 +282,8 @@ void GuiGraphics::on_getPB_clicked()
}
-void GuiGraphics::on_editPB_clicked()
-{
- editGraphics();
-}
-
-
void GuiGraphics::on_filename_textChanged(const QString & filename)
{
- editPB->setDisabled(filename.isEmpty());
EmbeddedFile file = EmbeddedFile(fromqstr(filename), fromqstr(bufferFilepath()));
}
@@ -570,9 +563,6 @@ void GuiGraphics::updateContents()
else
origin->setCurrentIndex(0);
- // disable edit button when no filename is present
- editPB->setDisabled(filename->text().isEmpty());
-
//// latex section
latexoptions->setText(toqstr(igp.special));
}
@@ -788,15 +778,6 @@ bool GuiGraphics::isFilenameValid(string const & fname) const
}
-void GuiGraphics::editGraphics()
-{
- applyView();
- string const lfun =
- InsetGraphicsMailer::params2string(params_, buffer());
- dispatch(FuncRequest(LFUN_GRAPHICS_EDIT, lfun));
-}
-
-
namespace {
char const * const bb_units[] = { "bp", "cm", "mm", "in" };
diff --git a/src/frontends/qt4/GuiGraphics.h b/src/frontends/qt4/GuiGraphics.h
index 2e8e2235e0..0e7cb946d4 100644
--- a/src/frontends/qt4/GuiGraphics.h
+++ b/src/frontends/qt4/GuiGraphics.h
@@ -45,7 +45,6 @@ private Q_SLOTS:
void change_bb();
void on_browsePB_clicked();
void on_getPB_clicked();
- void on_editPB_clicked();
void on_filename_textChanged(const QString &);
void on_scaleCB_toggled(bool);
void on_WidthCB_toggled(bool);
@@ -81,8 +80,6 @@ private:
bool bbChanged;
/// test if file exist
bool isFilenameValid(std::string const & fname) const;
- /// edit file
- void editGraphics();
private:
///
diff --git a/src/frontends/qt4/ui/GraphicsUi.ui b/src/frontends/qt4/ui/GraphicsUi.ui
index a921de4423..2a44168516 100644
--- a/src/frontends/qt4/ui/GraphicsUi.ui
+++ b/src/frontends/qt4/ui/GraphicsUi.ui
@@ -56,19 +56,6 @@
- -
-
-
- &Edit
-
-
- false
-
-
- false
-
-
-
-
@@ -751,7 +738,6 @@
TabWidget
filename
browsePB
- editPB
scaleCB
Scale
WidthCB