diff --git a/contrib/brushexport/callbacks.cpp b/contrib/brushexport/callbacks.cpp index b70cd66f..b31eeea3 100644 --- a/contrib/brushexport/callbacks.cpp +++ b/contrib/brushexport/callbacks.cpp @@ -28,9 +28,7 @@ void OnExportClicked( GtkButton* button, gpointer choose_path ){ ASSERT_NOTNULL( b_export ); gtk_widget_set_sensitive( b_export, TRUE ); // add tooltip - std::string tip( "ReExport to " ); - tip.append( s_export_path ); - gtk_widget_set_tooltip_text( b_export, tip.c_str() ); + gtk_widget_set_tooltip_text( b_export, ( std::string( "ReExport to " ) + s_export_path ).c_str() ); } else if( s_export_path.empty() ){ return; diff --git a/contrib/brushexport/export.cpp b/contrib/brushexport/export.cpp index a9d2bfcd..6ed858d9 100644 --- a/contrib/brushexport/export.cpp +++ b/contrib/brushexport/export.cpp @@ -372,11 +372,15 @@ private: ExportData& exporter; }; +#include "plugin.h" +#include "qerplugin.h" + bool ExportSelection( const StringSetWithLambda& ignorelist, collapsemode m, bool exmat, const std::string& path, bool limNames, bool objs, bool weld ){ ExportDataAsWavefront exporter( ignorelist, m, exmat, limNames, objs, weld ); if( GlobalSelectionSystem().countSelected() == 0 ){ globalErrorStream() << "Nothing is selected.\n"; + GlobalRadiant().m_pfnMessageBox( g_pRadiantWnd, "Nothing is selected.", "brushexport", eMB_OK, eMB_ICONERROR ); return false; }