brushexport plugin: popup on export with nothing selected
This commit is contained in:
parent
2656228b13
commit
b5c831908d
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user